community.general/lib/ansible/modules/files
Jérémy Lecour 2fb9b46752 Lineinfile must not insert lines multiples times with insertbefore/insertafter (#49409)
* Change test suite to fit expected behaviour

This reverts some changes from ansible/ansible@723daf3
If a line is found in the file, exactly or via regexp matching, it must 
not be added again.
insertafter/insertbefore options are used only when a line is to be 
inserted, to specify where it must be added.

* Implement the change in behaviour mentioned in the previous commit

* Fix comment to reflect what the code does

* Set the correct return message.

In these cases, the lines are added, not replaced.

* Add a changelog
2018-12-17 16:42:24 -05:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
acl.py Docs: Clean up of 'acl' module docs (#46329) 2018-11-02 16:57:59 -04:00
archive.py fix archive module can not compress a single file in a tar file (#45117) 2018-11-30 10:49:35 +00:00
assemble.py Add seealso section to Windows and related modules (#49845) 2018-12-15 03:23:59 +01:00
blockinfile.py Update documentation for marker (#47292) 2018-10-19 14:31:03 -04:00
copy.py Add seealso section to Windows and related modules (#49845) 2018-12-15 03:23:59 +01:00
fetch.py Docs: Clean up of 'fetch' module docs (#46330) 2018-10-03 22:31:31 -05:00
file.py Add seealso section to Windows and related modules (#49845) 2018-12-15 03:23:59 +01:00
find.py Bulk module author 2 (#48955) 2018-11-21 10:32:42 +00:00
ini_file.py Addresses comments in #38971 (#44324) 2018-10-29 11:33:14 +00:00
iso_extract.py Update metadata to 1.1 2017-08-15 23:12:08 -07:00
lineinfile.py Lineinfile must not insert lines multiples times with insertbefore/insertafter (#49409) 2018-12-17 16:42:24 -05:00
patch.py Run patch command with --check option instead of --dry-run to support older BSDs (#42168) 2018-11-29 21:53:53 -05:00
read_csv.py read_csv: new module to read CSV files (#49578) 2018-12-10 11:42:47 +00:00
replace.py Fix remote_tmp when become with non admin user (#42396) 2018-07-06 10:49:19 -07:00
stat.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
synchronize.py Add seealso section to Windows and related modules (#49845) 2018-12-15 03:23:59 +01:00
tempfile.py Add seealso section to Windows and related modules (#49845) 2018-12-15 03:23:59 +01:00
template.py Add seealso section to Windows and related modules (#49845) 2018-12-15 03:23:59 +01:00
unarchive.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
xattr.py Adding namespace option into the xattr module (#42755) 2018-07-16 13:26:06 -04:00
xml.py Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00