Last active
August 29, 2015 14:21
-
-
Save sairez/e748c903b542ca2ac8db to your computer and use it in GitHub Desktop.
Example commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#assumes a deployer user exists on vagrant boxes with keys set up | |
#can also be run with `-u vagrant -k -K` if using sshpass | |
#entire config | |
ansible-playbook -i inventory/site.vagrant site-prod.yml -u deployer | |
#rerun a particular role | |
ansible-playbook -i inventory/site.vagrant site-prod.yml -u deployer --tags='nodejs' | |
ansible-playbook -i inventory/site.vagrant site-prod.yml -u deployer --tags='prince,fonts' | |
ansible-playbook -i inventory/site.vagrant site-prod.yml -u deployer --tags='hostname' | |
#install new version of ruby in rbenv after changing rbenv_ruby_version in vars/site.yml | |
#(nginx is included because passenger needs to be recompiled) | |
ansible-playbook -i inventory/site.vagrant site-prod.yml -u deployer --tags='ruby,nginx' --extra-vars 'rbenv_reinit=true passenger_reinit=true' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment