Pre Setup - scottgoetz/ansible GitHub Wiki
Note: This assumes you client/target is not configured with an unprivileged user and does not use SSH keys. If this does not apply to you, modify secureSetup.yml appropriately.
-
Generate and record password hash for the new unprivilged user use in .yml files:
a.
mkpasswd -m sha-512
b. save this hash, it will be used in
secureSetup.yml
-
Disable host key checking:
a.
sudo vi /etc/ansible/ansible.cfg
b. uncomment
host_key_checking = False
-
Generate ssh keypairs for Clients, annotate paths for .yml files:
sudo apt-get install sshpass
ssh-keygen