-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
To deploy ansible config from github to ansible-control.bornhack.org: | ||
To deploy ansible config from github on ansible3.servers.bornhack.org: | ||
sudo /root/deploy.sh | ||
|
||
Before running ansible: | ||
sudo su ansible | ||
|
||
Deploy specific github branch to specific staging server: | ||
Deploy specific github branch to specific django server: | ||
|
||
ansible-playbook --tags "codedeploy" -i /usr/local/etc/ansible/staging_hosts -l "staging2.servers.bornhack.org" --extra-vars "django_github_branch=feature/new-design-and-content" /usr/local/etc/ansible/roles/playbook.yml | ||
cd /usr/local/etc/ansible && ansible-playbook --tags "codedeploy" -l "django4.servers.bornhack.org" --extra-vars "django_github_branch=feature/new-design-and-content" roles/playbook.yml | ||
--- | ||
Deploy master github branch to production bornhack.dk webserver: | ||
Deploy default github branch and update virtualenv: | ||
|
||
ansible-playbook --tags "codedeploy" -i /usr/local/etc/ansible/production_hosts -l "www.bornhack.dk" /usr/local/etc/ansible/roles/playbook.yml | ||
cd /usr/local/etc/ansible && ansible-playbook --tags "codedeploy,pip" -l "django5.servers.bornhack.org" roles/playbook.yml | ||
--- | ||
Reconfigure everything on all staging tor servers: | ||
Reconfigure everything on all servers: | ||
|
||
ansible-playbook --tags "tor_servers" -i /usr/local/etc/ansible/staging_hosts /usr/local/etc/ansible/roles/playbook.yml | ||
cd /usr/local/etc/ansible && ansible-playbook roles/playbook.yml | ||
--- | ||
Reconfigure everything on all production servers: | ||
|
||
ansible-playbook -i /usr/local/etc/ansible/production_hosts /usr/local/etc/ansible/roles/playbook.yml | ||
--- | ||
|