-
Notifications
You must be signed in to change notification settings - Fork 12
Tips and Tricks
Brad Smith edited this page Jan 29, 2015
·
2 revisions
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.
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
Any of these variables can be used in {{ substitutions }}
and when:
statements in your roles and playbooks.
Load the ansible SSH key and then...
ansible -m setup -i /usr/local/tunapanda/provision/scripts/inventory.py localhost > ~/ansible_vars
less ~/ansible_vars