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/c46aa6f6-37ac-4309-b7b1-5ff6e5b5c499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.