-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathgw.yml
33 lines (25 loc) · 905 Bytes
/
gw.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
# This playbook deploys the whole application stack in this site.
- hosts: localhost
remote_user: root
roles:
- { role: git, tags: [ 'update_pre', 'pkbuild', 'git' ] }
- { role: composer, tags: [ 'update_pre', 'pkbuild', 'composer'] }
- { role: create_tar, tags: [ 'update_pre', 'pkbuild', 'create_tar'] }
- name: configure and deploy web groupserver
hosts: webworker
remote_user: root
roles:
- { role: updatefile, tags: [ 'update_pre', 'updatefile' ] }
- name: configure and deploy worker groupserver
hosts: worker
remote_user: root
roles:
# - { role: mysql, tags: [ 'update_db', 'mysql' ] }
- { role: crond , tags: [ 'process', 'crond' ] }
- { role: supervisord, tags: [ 'process', 'supervisord' ] }
- name: restart php
hosts: web
remote_user: root
roles:
- { role: php, tags: [ 'process', 'php' ] }