-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
64 lines (60 loc) · 1.59 KB
/
playbook.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
53
54
55
56
57
58
59
60
61
62
63
64
---
- name: Install Base Services
hosts: openstack
vars:
roles:
- role: ansible-motd
- role: ansible-etc-hosts
- role: ansible-config-interfaces
- role: ansible-timezone
- role: ansible-chrony
- role: ansible-openstack-openrc
- role: ansible-openstack-base
tasks:
- name: Install Core Services
hosts: openstack_controllers
any_errors_fatal: true
vars:
roles:
- role: ansible-mysql
when: not openstack_ha
- role: ansible-mariadb-galera-cluster
when: openstack_ha
- role: ansible-rabbitmq
tags:
- 'openstack_rabbitmq'
- role: ansible-memcached
tags:
- 'openstack_memcached'
- name: Install HA Services
hosts: openstack_controllers
any_errors_fatal: true
vars:
roles:
- role: ansible-haproxy
when: openstack_ha
tags:
- 'openstack_ha'
- 'openstack_ha_haproxy'
- role: ansible-pacemaker
when: openstack_ha
tags:
- 'openstack_ha'
- 'openstack_ha_pacemaker'
- name: Install OpenStack Controller Services
hosts: openstack_controllers
any_errors_fatal: true
vars:
roles:
- role: ansible-openstack-identity-service
- role: ansible-openstack-image-service
- role: ansible-openstack-compute-service-controller
- role: ansible-openstack-networking-service-controller
- role: ansible-openstack-dashboard
# - name: Install OpenStack Compute Services
# hosts: openstack_computes
# any_errors_fatal: true
# vars:
# roles:
# - role: ansible-openstack-compute-service-compute
# - role: ansible-openstack-networking-service-compute