ansible/lib/ansible
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
..
cli Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config Misc typo fixes (#49816) 2018-12-14 15:12:58 +05:30
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 2018-12-04 12:32:02 -05:00
executor Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
galaxy Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
inventory Fix reverse_inventory order to work on python3 (#49895) 2018-12-17 15:39:29 -06:00
module_utils Port from plaform.dist to ansible.module_utils.distro.linux_distribution 2018-12-17 11:01:01 -08:00
modules Lineinfile must not insert lines multiples times with insertbefore/insertafter (#49409) 2018-12-17 16:42:24 -05:00
parsing Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
playbook Allow tags to be templated from a variable (#49833) 2018-12-17 15:40:26 -06:00
plugins Move errors from import to connect (#50034) 2018-12-17 12:33:44 -05:00
template Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
utils Add types to common url parameters (#50000) 2018-12-17 11:26:07 -06:00
vars Misc typo fixes (#49816) 2018-12-14 15:12:58 +05:30
__init__.py
constants.py become_method: make dzdo more like sudo (#47946) 2018-12-04 18:24:32 -05:00
release.py Codename: How Many More Times 2018-09-04 12:38:29 -04:00