replace: update after/before example (#83453)

Fixes: #83390

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/83285/merge
Abhijeet Kasurde 5 months ago committed by GitHub
parent dc31b6cf55
commit 224853b684
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