There was an error while loading. Please reload this page.
This is required for many of the tasks below
sudo -i eval $(ssh-agent -s) ssh-add ~/.ssh/provisioning
Running bootstrap.sh spends a lot of time checking for dependencies, updating repos, etc.
bootstrap.sh
To test changes to a role more quickly, load the ansible SSH key as described above, and then...
cd /usr/local/tunapanda/provision/playbooks/ ansible-playbook -i ../scripts/inventory.py main.yml
You can also create a custom playbook and use it instead of main.yml
main.yml
Any of these variables can be used in {{ substitutions }} and when: statements in your roles and playbooks.
{{ substitutions }}
when:
Load the ansible SSH key and then...
ansible -m setup -i /usr/local/tunapanda/provision/scripts/inventory.py localhost > ~/ansible_vars less ~/ansible_vars