Separated workers and webservers

This commit is contained in:
2016-01-27 10:25:16 -05:00
parent df88b516b6
commit dbd43ecb7a
5 changed files with 66 additions and 49 deletions

View File

@@ -13,15 +13,24 @@
remote_user: root
roles:
- applicationvars
- web
- name: configure and deploy the rails workers and application code
hosts: workers
remote_user: root
roles:
- applicationvars
- worker
- name: deploy first db and create cluster
hosts: dbfirstclustermachine
remote_user: root
roles:
- firstdb
- db
- firstdb
- name: deploy mysql and configure database
hosts: dbservers