-
Notifications
You must be signed in to change notification settings - Fork 0
/
60-undercloud_install.yaml
42 lines (41 loc) · 1.2 KB
/
60-undercloud_install.yaml
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
---
- hosts: undercloud
roles:
- common
- director
vars:
enable_repos:
- rhel-9-for-x86_64-baseos-rpms
- rhel-9-for-x86_64-appstream-rpms
- rhel-9-for-x86_64-highavailability-rpms
- openstack-17.1-for-rhel-9-x86_64-rpms
- fast-datapath-for-rhel-9-x86_64-rpms
tasks:
- block:
- become: yes
shell: subscription-manager release --set=9.2
- include_tasks: roles/common/tasks/predeploy.yaml
- include_tasks: roles/director/tasks/set_hostname.yaml
- include_tasks: roles/common/tasks/subscribe_rhsm.yaml
- include_tasks: roles/director/tasks/generate_certs.yaml
tags:
- ssl
- csr
- sslimportcert
- include_tasks: roles/director/tasks/install.yaml
tags:
- install
- images
- dns
- nfv
- set_fact:
message: "OSP Undercloud have been deployed"
changed_when: True
notify: telegram
rescue:
- set_fact:
message: "OSP Undercloud installation have failed"
changed_when: True
notify: telegram
- fail:
msg: "{{ message }}"