On 12. okt. 2016 21:36, Alan Harkleroad wrote:
So I wrote a short playbook to update our VMs to update the
/boot/grub/grub.conf file to use a new hashed password but the playbook
comes back green with no changes. Not sure what I am doing wrong, any help
- host: myhosts
- name: Update grub.conf file with new passwd hash
regexp='password --encrypted currenthash!@#$$$'
replace='password --encrypted newhash12345667'
Hard to say without knowing how the current hash looks like, but if the
hash contain any regexp special character they need to be escaped.
List of them you'll find here
Kai Stian Olstad
You received this message because you are subscribed to the Google Groups "Ansible
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.