[stable-2.17] replace: update after/before example (#83472)

Fixes: #83390

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 224853b684)
pull/83504/head
Abhijeet Kasurde 2 years ago committed by GitHub
parent 5302e2cea2
commit 2330c4386b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,3 @@
---
bugfixes:
- replace - Updated before/after example (https://github.com/ansible/ansible/issues/83390).

@ -140,7 +140,7 @@ EXAMPLES = r'''
ansible.builtin.replace:
path: /etc/hosts
after: '(?m)^<VirtualHost [*]>'
before: '(?m)^</VirtualHost>'
before: '</VirtualHost>'
regexp: '^(.+)$'
replace: '# \1'

Loading…
Cancel
Save