community.general/lib/ansible/modules/files
gimoh fd69c5687b Do not insert extra newline if line already contains it
When using YAML multi-line strings, e.g.:

- lineinfile:
    dest: /tmp/foo
    line: >
      foo
      bar

the line already ends with a newline.  If an extra newline is appended unconditionally it will lead to inserting an extra newline on each run.
2016-12-08 11:23:13 -05:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
acl.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
assemble.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
copy.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
fetch.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
file.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
find.py Add the ability to grep for content 2016-12-08 11:23:09 -05:00
ini_file.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
lineinfile.py Do not insert extra newline if line already contains it 2016-12-08 11:23:13 -05:00
replace.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
stat.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
synchronize.py Update version_added to 2.0 for the partial option 2016-12-08 11:23:12 -05:00
template.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
unarchive.py Bump amount of file to download in a chunk to 64k. 2016-12-08 11:23:11 -05:00
xattr.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00