File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed
common/inventory/group_vars/all Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
3
- - hosts : all
4
- become : no
5
- gather_facts : no
6
- tasks :
7
- - debug :
8
- msg : |
9
- appliances_environment_root: {{ appliances_environment_root }}
10
- appliances_repository_root: {{ appliances_repository_root }}
11
- - meta : end_here
12
-
13
3
# Provision the infrastructure using Terraform
14
4
- name : Provision infrastructure
15
5
hosts : openstack
Original file line number Diff line number Diff line change 1
1
# Account for the fact we are running outside of the expected environment system:
2
- appliances_repository_root : " {{ appliances_environment_root + '/../../' | normpath }}"
2
+ caas_inventory : " {{ ansible_inventory_sources | last }}" # ansible_inventory_sources is absolute
3
+ appliances_environment_root : " {{ caas_inventory | dirname }}"
4
+ appliances_repository_root : " {{ appliances_environment_root | dirname | dirname }}"
3
5
4
6
# Read the secrets from the Ansible local facts on the control host
5
7
vault_azimuth_user_password : " {{ hostvars[groups['control'][0]].ansible_local.openhpc_secrets.vault_azimuth_user_password }}"
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ update_exclude:
9
9
- apptainer # see https://github.com/stackhpc/ansible-slurm-appliance/pull/245
10
10
update_disablerepo : omit
11
11
# Log changes during update here on localhost:
12
- update_log_path : " {{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/logs/{{ inventory_hostname }}-updates.log"
12
+ update_log_path : " {{ appliances_environment_root }}/logs/{{ inventory_hostname }}-updates.log"
You can’t perform that action at this time.
0 commit comments