-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
38 lines (30 loc) · 1.36 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
---
- name: Update Undercloud in the inventory
import_playbook: "{{ update_inventory | default('update_inventory.yml') }}"
when: install.upgrade|default('')
- name: Perform validations
import_playbook: "{{ validate_undercloud | default('validate.yml') }}"
when: install.validate|default('')
tags:
- validation
- name: Deploy the Undercloud
import_playbook: "{{ install_undercloud | default('undercloud.yml') }}"
when: install.version|default('')
- name: Including post provision tasks
import_playbook: "{{ undercloud_post | default('post.yml') }}"
when: install.post|default('')
- name: Create an undercloud backup image (for undercloud snapshot)
import_playbook: "{{ install_backup | default('backup.yml') }}"
when: install.snapshot.backup|default('')
- name: Restore an undercloud from image (using undercloud snapshot)
import_playbook: "{{ install_restore | default('restore.yml') }}"
when: install.snapshot.restore|default('')
- name: Undercloud Upgrade
import_playbook: "{{ upgrade_undercloud | default('upgrade.yml') }}"
when: install.upgrade|default('') or install.get('update', {}).undercloud|default('')
- name: Setup Overcloud images on the undercloud
import_playbook: "{{ install_images | default('images.yml') }}"
when:
- install.images.task|default('')
- name: Post installation messages
import_playbook: post-install.yml