2
2
3
3
- name : Run pre.yml hook
4
4
vars :
5
- # hostvars not available here, so have to recalculate environment root:
6
- appliances_environment_root : " {{ ansible_inventory_sources | last | dirname }}"
5
+ appliances_environment_root : " {{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}"
7
6
hook_path : " {{ appliances_environment_root }}/hooks/pre.yml"
8
7
import_playbook : " {{ hook_path if hook_path | exists else 'noop.yml' }}"
9
8
when : hook_path | exists
10
9
11
- - import_playbook : validate.yml
12
- when : appliances_validate | default(true)
13
-
14
10
- import_playbook : bootstrap.yml
15
11
16
12
- name : Run post-bootstrap.yml hook
17
13
vars :
18
- # hostvars not available here, so have to recalculate environment root:
19
- appliances_environment_root : " {{ ansible_inventory_sources | last | dirname }}"
14
+ appliances_environment_root : " {{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}"
20
15
hook_path : " {{ appliances_environment_root }}/hooks/post-bootstrap.yml"
21
16
import_playbook : " {{ hook_path if hook_path | exists else 'noop.yml' }}"
22
17
when : hook_path | exists
32
27
tasks_from : client-install.yml
33
28
when : " 'freeipa_client' in group_names"
34
29
35
- # import_playbook: filesystems.yml:
30
+ # - import_playbook: filesystems.yml:
36
31
- name : Install nfs packages
37
32
dnf :
38
33
name : nfs-utils
49
44
become : yes
50
45
gather_facts : yes
51
46
tasks :
52
- # import_playbook: slurm.yml:
47
+ # - import_playbook: slurm.yml:
53
48
- name : Setup DB
54
49
include_role :
55
50
name : mysql
71
66
name : openondemand
72
67
tasks_from : vnc_compute.yml
73
68
74
- # import_playbook: monitoring.yml:
69
+ # - import_playbook: monitoring.yml:
75
70
- import_role :
76
71
name : opensearch
77
72
tasks_from : install.yml
149
144
- prometheus
150
145
- promtool
151
146
147
+ - name : Include distribution variables for cloudalchemy.grafana
148
+ include_vars : " {{ appliances_repository_root }}/ansible/roles/cloudalchemy.grafana/vars/redhat.yml"
152
149
- import_role :
153
150
name : cloudalchemy.grafana
154
151
tasks_from : install.yml
155
152
156
153
- name : Run post.yml hook
157
154
vars :
158
- # hostvars not available here, so have to recalculate environment root:
159
- appliances_environment_root : " {{ ansible_inventory_sources | last | dirname }}"
155
+ appliances_environment_root : " {{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}"
160
156
hook_path : " {{ appliances_environment_root }}/hooks/post.yml"
161
157
import_playbook : " {{ hook_path if hook_path | exists else 'noop.yml' }}"
162
158
when : hook_path | exists
163
159
164
- - name : Clean up and shutdown Packer VM
165
- hosts : builder
166
- gather_facts : no
160
+ - hosts : builder
167
161
become : yes
162
+ gather_facts : no
168
163
tasks :
164
+ # - meta: end_here
169
165
- name : Cleanup image
170
166
import_tasks : cleanup.yml
171
- - name : Shutdown Packer VM
172
- community.general.shutdown :
173
167
174
- ...
168
+ - name : Shutdown Packer VM
169
+ community.general.shutdown :
0 commit comments