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:
Sam Doran 2018-02-01 16:45:26 -05:00 committed by GitHub
commit f8f2b6d61d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 319 additions and 95 deletions

View file

@ -0,0 +1,7 @@
This is line 1
This is line 2
This is line 3
This is line 4