Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tykling committed Mar 22, 2022
1 parent 39d0a45 commit 33ffd65
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions README.md
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
---

0 comments on commit 33ffd65

Please sign in to comment.