-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmorpheus.yml
47 lines (43 loc) · 1006 Bytes
/
morpheus.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
---
- hosts: elastic_cluster
gather_facts: true
roles:
- elasticsearch
become: true
- hosts: rabbit_cluster
gather_facts: true
roles:
- rabbitmq
become: true
- hosts: db
gather_facts: true
pre_tasks:
- name: Gather Morpheus facts
setup:
delegate_to: "{{ item }}"
delegate_facts: true
with_items: "{{ groups['morpheus'] }}"
roles:
- percona
become: true
- hosts: morpheus
gather_facts: true
pre_tasks:
- name: Gather Elastic Facts
setup:
delegate_to: "{{ item }}"
delegate_facts: true
with_items: "{{ groups['elastic_cluster'] }}"
- name: Gather Rabbit Facts
setup:
delegate_to: "{{ item }}"
delegate_facts: true
with_items: "{{ groups['rabbit_cluster'] }}"
- name: Gather DB facts
setup:
delegate_to: "{{ item }}"
delegate_facts: true
with_items: "{{ groups['db'] }}"
roles:
- morpheus
become: true