Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Ansible playbook that changes root password

I wrote a playbook that updates the root password on EL6 and EL7 hosts. Because I was not able to get the user: name=root password={{password}} directive working, I had to be creative. Coincidentally, I learned that pasting in a gist.github.com link into the Wordpress.com editor automatically shows the contents of the gist. That is nifty! See below. For the link: https://gist.github.com/bgstack15/d565880badb92599536b751a15dc7189 https://gist.github.com/bgstack15/d565880badb92599536b751a15dc7189

Comments