community.general/lib/ansible/modules
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
..
cloud changed if logic Type to boolean (#49628) 2018-12-17 16:21:36 -05:00
clustering Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
commands Add seealso section to Windows and related modules (#49845) 2018-12-15 03:23:59 +01:00
crypto Fix stacktrace when fail_on_error is False and a file cannot be parsed. (#49987) 2018-12-16 15:26:29 -05:00
database New module - postgresql_idx (#49684) 2018-12-17 11:56:33 +00:00
files Lineinfile must not insert lines multiples times with insertbefore/insertafter (#49409) 2018-12-17 16:42:24 -05:00
identity Fix an issue retrieving some types of 1Password items. (#47213) 2018-12-05 11:49:26 -05:00
inventory Bulk fix DOCUMENTATION.author (Part 1) (#48934) 2018-11-20 19:31:35 +00:00
messaging rabbitmq_vhost_limits: Move to rabbitmq subdirectory (#49650) 2018-12-08 23:41:59 +01:00
monitoring Ensure that current uses of BaseException are required 2018-12-16 15:03:19 -08:00
net_tools Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
network ACI: Add types to modules and doc fragment (#49997) 2018-12-17 11:23:10 -06:00
notification Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
packaging Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
remote_management Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
source_control Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
storage Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
system Port from plaform.dist to ansible.module_utils.distro.linux_distribution 2018-12-17 11:01:01 -08:00
utilities Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
web_infrastructure Sophos UTM - add module to handle utm ca host key certificate entries (#48927) 2018-12-17 11:57:54 +00:00
windows Fix document references in modules (#49892) 2018-12-17 10:20:06 -06:00
__init__.py