--- # 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-app - name: Wait 5 seconds for server to warm up command: sleep 5s