Separated workers and webservers
This commit is contained in:
11
site.yml
11
site.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user