-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhealthcheck.yml
39 lines (33 loc) · 892 Bytes
/
healthcheck.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
- hosts: controller
name: Controller Checks
remote_user: "{{ remote_user }}"
become: "{{ become }}"
roles:
- common
- glance
- nova-controller
- { role: neutron-server, tags: 'neutron-server' }
- { role: cinder, tags: 'cinder' }
- hosts: compute
name: Compute Checks
remote_user: "{{ remote_user }}"
become: "{{ become }}"
roles:
- common
- nova-compute
- { role: neutron-agent, tags: 'neutron-agent' }
- hosts: localhost
gather_facts: True # Needed for date/time in report
become: false
name: Generating config report
vars:
- debug: false
tags:
- report
tasks:
- name: Dump host vars
debug: var=hostvars[item]
with_items: "{{groups['all']}}"
when: debug == true
- local_action: template src=templates/config_report.j2 dest={{result_dir}}/config_report.log
become: false