forked from jriguera/ansible-ironic-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.yml
54 lines (47 loc) · 1.11 KB
/
setup.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
---
- name: Ensure package cache is up-to-date
hosts: server
become: yes
serial: 1
vars:
_package_cache_update: true
pre_tasks:
# Load variables from vars instead from the inventory. This is to
# be able to encrypt those with vault. Comment out this task in order
# to get them from the inventory.
- name: "Load Ironic (encrypted) variables"
include_vars: "{{ item }}"
with_first_found:
- "vars/{{ deployment }}/Ironic.yml"
- "vars/Ironic.yml"
tasks:
- include: tasks/package_cache_update.yml
- name: MySQL database setup
hosts: database
become: yes
roles:
- role: mysql
- role: monit
- name: RabbitMQ messaging setup
hosts: messaging
become: yes
roles:
- role: rabbitmq
- role: monit
- name: Ironic API setup
hosts: ironic-api
become: yes
roles:
- role: ironic
- role: inspector
ironic_inspector_discovery_enroll_dir: "vars/{{ deployment }}/inspector"
- role: nginx
- role: webclient
- role: monit
- name: Ironic Conductor setup
hosts: ironic-conductor
become: yes
roles:
- role: ironic
- role: dnsmasq
- role: monit