Hello Luca, Replace can be removed single line, but how we can remove block ?
Thanks, Deepan M On Wednesday, February 27, 2019 at 9:18:48 PM UTC+5:30, fusillator wrote: > > Consider using the replace module to normalize the space incongruence > before the blockinfile task.. > Something like > > - replace: > path: resolv.conf > regexp: '^(.*)\s+#\s+(.*)$' > replace: '\1 # \2' > backup: yes > > unfortunately I can't try the playbook in this moment. > > Regards > > Luca > > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/eabd23cf-e777-4b65-b8e8-ada91956fec1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
