Skip to content

Commit f3357db

Browse files
committed
revert changes to fatimage to minimise PR
1 parent 5d40e68 commit f3357db

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

ansible/fatimage.yml

+13-18
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,16 @@
22

33
- name: Run pre.yml hook
44
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') }}"
76
hook_path: "{{ appliances_environment_root }}/hooks/pre.yml"
87
import_playbook: "{{ hook_path if hook_path | exists else 'noop.yml' }}"
98
when: hook_path | exists
109

11-
- import_playbook: validate.yml
12-
when: appliances_validate | default(true)
13-
1410
- import_playbook: bootstrap.yml
1511

1612
- name: Run post-bootstrap.yml hook
1713
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') }}"
2015
hook_path: "{{ appliances_environment_root }}/hooks/post-bootstrap.yml"
2116
import_playbook: "{{ hook_path if hook_path | exists else 'noop.yml' }}"
2217
when: hook_path | exists
@@ -32,7 +27,7 @@
3227
tasks_from: client-install.yml
3328
when: "'freeipa_client' in group_names"
3429

35-
# import_playbook: filesystems.yml:
30+
# - import_playbook: filesystems.yml:
3631
- name: Install nfs packages
3732
dnf:
3833
name: nfs-utils
@@ -49,7 +44,7 @@
4944
become: yes
5045
gather_facts: yes
5146
tasks:
52-
# import_playbook: slurm.yml:
47+
# - import_playbook: slurm.yml:
5348
- name: Setup DB
5449
include_role:
5550
name: mysql
@@ -71,7 +66,7 @@
7166
name: openondemand
7267
tasks_from: vnc_compute.yml
7368

74-
# import_playbook: monitoring.yml:
69+
# - import_playbook: monitoring.yml:
7570
- import_role:
7671
name: opensearch
7772
tasks_from: install.yml
@@ -149,26 +144,26 @@
149144
- prometheus
150145
- promtool
151146

147+
- name: Include distribution variables for cloudalchemy.grafana
148+
include_vars: "{{ appliances_repository_root }}/ansible/roles/cloudalchemy.grafana/vars/redhat.yml"
152149
- import_role:
153150
name: cloudalchemy.grafana
154151
tasks_from: install.yml
155152

156153
- name: Run post.yml hook
157154
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') }}"
160156
hook_path: "{{ appliances_environment_root }}/hooks/post.yml"
161157
import_playbook: "{{ hook_path if hook_path | exists else 'noop.yml' }}"
162158
when: hook_path | exists
163159

164-
- name: Clean up and shutdown Packer VM
165-
hosts: builder
166-
gather_facts: no
160+
- hosts: builder
167161
become: yes
162+
gather_facts: no
168163
tasks:
164+
# - meta: end_here
169165
- name: Cleanup image
170166
import_tasks: cleanup.yml
171-
- name: Shutdown Packer VM
172-
community.general.shutdown:
173167

174-
...
168+
- name: Shutdown Packer VM
169+
community.general.shutdown:

0 commit comments

Comments
 (0)