1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/lineinfile
Jérémy Lecour 2fb9b46752 Lineinfile must not insert lines multiples times with insertbefore/insertafter ()
* 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
..
files Check for regexp match when using insertbefore or insertafter () 2018-02-21 17:03:38 -05:00
meta Migrate Linux CI roles to test targets. () 2016-10-13 09:09:25 -07:00
tasks Lineinfile must not insert lines multiples times with insertbefore/insertafter () 2018-12-17 16:42:24 -05:00
vars Check for regexp match when using insertbefore or insertafter () 2018-02-21 17:03:38 -05:00
aliases Update Shippable integration test groups. () 2018-07-23 20:46:22 -07:00