ansible/test/integration/targets/lineinfile/vars/main.yml
Sam Doran 84debca5fb Check for regexp match when using insertbefore or insertafter (#36474) (#36552)
Add tests to cover this scenario
Add changelog fragment
Fixes #36156

(cherry picked from commit 723daf3e3a)
2018-02-21 18:08:45 -08:00

29 lines
467 B
YAML

test_regexp:
- regex: '1'
replace: 'bar'
- regex: '2'
replace: 'bar'
- regex: '3'
replace: 'bar'
- regex: '4'
replace: 'bar'
test_befaf_regexp:
- before: section_three
after: section_one
regexp: option_one=
line: option_one=1
- before: section_three
after: section_one
regexp: option_two=
line: option_two=2
- before: section_three
after: section_one
regexp: option_three=
line: option_three=3