-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
43 lines (37 loc) · 1.3 KB
/
main.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
- name: Perform validations
import_playbook: "{{ validata_overcloud | default('validate.yml') }}"
tags:
- validation
- name: Auto discover undercloud version
import_playbook: "{{ auto_discover_undercloud_version | default('version.yml') }}"
when: install.version is not defined
tags:
- always
- name: Overcloud install
import_playbook: "{{ overcloud_install | default('install.yml') }}"
when:
- not install.upgrade|default('')
- not install.ocupdate|default(False)
- name: Overcloud Upgrade
import_playbook: "{{ overcloud_upgrade | default('upgrade.yml') }}"
when:
- install.upgrade|default('')
- name: Overcloud Update
import_playbook: "{{ overcloud_update | default('update.yml') }}"
when:
- install.ocupdate|default(False)
- name: Overcloud Reboot
import_playbook: "{{ overcloud_reboot | default('overcloud_reboot.yml') }}"
when:
- install.postreboot|default(False)
- name: Collect Ansible facts
import_playbook: 'collect-ansible-facts.yml'
when:
- install.collect.ansible.facts|default(False)
- not install.upgrade|default('')
- not install.ocupdate|default(False)
- not install.pre|default('')
- not install.introspect|default('')
- not install.tagging|default('')
tags: collect-ansible-facts
ignore_errors: True