ansible/test/integration/targets/lineinfile/vars/main.yml
Sam Doran f8f2b6d61d
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
2018-02-01 16:45:26 -05:00

12 lines
152 B
YAML

test_regexp:
- regex: '1'
replace: 'bar'
- regex: '2'
replace: 'bar'
- regex: '3'
replace: 'bar'
- regex: '4'
replace: 'bar'