Run for password hash: mkpasswd --method=sha-512
The following steps must be performed:
-
Name hosts.example in hosts and customize the server
-
Create a password hash for the new user with: mkpasswd --method=sha-512
-
Name group_vars/servers.example in group_vars/servers and customize the entries
-
Generate SSH keys and copy to server Example: rm -rf ~/.ssh ssh-keygen -q -f ~/.ssh/id_rsa -N "" ssh-copy-id user@server
-
Run the Playbook with ./bootstrap_servers.yml or ansible-playbook bootstrap_servers.yml