Created
February 14, 2017 10:03
-
-
Save NetguruGist/3274db6dfc7e4a636ba4ece997169c46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update; apt-get upgrade | |
apt-get install pwgen whois | |
/usr/bin/pwgen -s 40 1 (save result internally to Ansible to “root_password” variable) | |
/usr/bin/mkpasswd {result from root_password} --method=SHA-512 (save internally to “root_crypted_password”) | |
Set the root password | |
Print the root password, so that you can see what it is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment