mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Fix lineinfile to insert line when pattern exists elsewhere in the file. (#33393)
* Insert lines before or after when the regexp exists elsewhere in the file * Correct filter syntax in lineinfile integration test * Use multi-line YAML syntax on lineinfile tests Unify indentation * Add lineinfile tests for same line matched to different regexps * Remove debug statement from test
This commit is contained in:
parent
4a48fdba1d
commit
f8f2b6d61d
4 changed files with 319 additions and 95 deletions
|
@ -0,0 +1,7 @@
|
|||
This is line 1
|
||||
|
||||
This is line 2
|
||||
|
||||
This is line 3
|
||||
|
||||
This is line 4
|
Loading…
Add table
Add a link
Reference in a new issue