So Im following the blog post here: http://www.kernel-overload.com/automatic-password-generator-to-work-with-ansible/
In my situation since I will be using this to change root on about 60 servers and due to security policy we do not want them sent in cleartext via email… I devised a plan:
echo the passwd to a txt file, scp the file to a secured host then rm it on the source. But to help organize the ton of txt files that will be generated I want to name the files to match the remote hostnames of each server. So for example my bash script will be creating ‘pw.txt’ that contains the passwd in cleartext. I’d like, once it’s called, for ansible to rename the file to be hostname.txt
Since I’m extremely green at it Im asking here for help. Thanks