mirror of https://github.com/ansible/ansible.git
* Skip if insertbefore BOF until later (#41767)
If a line match is found in the file and no regexp is specified, insertbefore would improperly try to add a line if set to BOF.
Add tests for this scenario.
(cherry picked from commit eaae1318f8)
* Add changelog fragment
pull/41932/merge
parent
08e016780b
commit
bd1ecd016b
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- lineinfile - fix insertbefore when used with BOF to not insert duplicate lines (https://github.com/ansible/ansible/issues/38219)
|
||||
Loading…
Reference in New Issue