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.

  1. 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

  2. Disable host key checking:

    a. sudo vi /etc/ansible/ansible.cfg

    b. uncomment host_key_checking = False

  3. Generate ssh keypairs for Clients, annotate paths for .yml files:

    sudo apt-get install sshpass

    ssh-keygen