-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yml
52 lines (46 loc) · 969 Bytes
/
deploy.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
- name: Deploy the control tier
hosts: command
become: true
roles:
- nfs_client
- control
- name: Deploy the storage tier
hosts: file
become: true
roles:
- stefangweichinger.ansible_rclone
- filestore
- zabbix_agent
- name: Deploy the web tier
hosts: web
become: true
roles:
- nfs_client
- nginx
- zabbix_agent
- name: Deploy the wp_admin tier
hosts: wpadmin
become: true
roles:
- nfs_client
- wp_admin
- zabbix_agent
- name: Deploy Wordpress Cron File to first WPAdmin host
hosts: wpadmin[0]
become: true
roles:
- cron_wordpress
- name: Deploy the balance tier
hosts: loadbalancers
become: true
vars:
webnodes: "{{ groups['web'] }}"
wpanodes: "{{ groups['wpadmin'] }}"
roles:
- haproxy
- zabbix_agent
- hosts: localhost
tasks:
- include_tasks: _Lifecycle/FloatingIP_Mover.yml
when: droplet_type == "loadbalancer"