Re-organized all files and added a Vagrantfile
This commit is contained in:
28
playbooks/code-deploy.yml
Normal file
28
playbooks/code-deploy.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
# This playbook deploys the whole application stack for wrestlingdev
|
||||
#
|
||||
|
||||
- hosts: webservers
|
||||
remote_user: root
|
||||
serial: 1
|
||||
|
||||
tasks:
|
||||
- name: Refresh code
|
||||
command: chdir=/root/wrestlingApp git pull origin master
|
||||
- name: Restart and rebuild docker container
|
||||
command: chdir=/root/wrestlingApp bash rails-prod.sh wrestlingdev-app
|
||||
- name: Wait 5 seconds for server to warm up
|
||||
command: sleep 5s
|
||||
|
||||
- hosts: workers
|
||||
remote_user: root
|
||||
serial: 1
|
||||
|
||||
tasks:
|
||||
- name: Refresh code
|
||||
command: chdir=/root/wrestlingApp git pull origin master
|
||||
- name: Restart and rebuild docker container
|
||||
command: chdir=/root/wrestlingApp bash rails-worker-prod.sh wrestlingdev-worker
|
||||
- name: Wait 5 seconds for server to warm up
|
||||
command: sleep 5s
|
||||
|
||||
Reference in New Issue
Block a user