Fill in your SSH public key in setup.sh then copy it to the target host and run as root to setup requirements for Ansible.
On the local machine:
- Optionally create a virtualenv
- Run
pip install -r requirements.txtto install dependencies - Run
ansible-galaxy install -r requirements.ymlto install ansible dependencies - Fill in the
hostsfile along the example
The playbook can be ran like so:
ansible-playbook site.ymlFor a dry run the check, diff and verbose parameters can be added:
ansible-playbook -C -D -v site.ymlTo run only on a subset of hosts the limit parameter can be added:
ansible-playbook -l SUBSET site.yml