Skip to content

Commit

Permalink
Merge pull request #59 from ja9fuchs/fix-var-lookup
Browse files Browse the repository at this point in the history
sap_vm_provision: fix var reference to var lookup
  • Loading branch information
berndfinger authored Sep 4, 2024
2 parents ed17a55 + f7b3fcb commit d90c358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/sap_vm_provision/tasks/common/set_ansible_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- name: Set facts for all hosts - use facts from localhost - SAP Variables from host_specifications_dictionary
ansible.builtin.set_fact:
"{{ host_spec_sap_item }}": "{{ lookup('ansible.builtin.vars', 'sap_vm_provision_' + sap_vm_provision_iac_platform + '_host_specifications_dictionary')[sap_vm_provision_host_specification_plan][scaleout_origin_host_spec | default(inventory_hostname)][host_spec_sap_item] }}"
loop: "{{ vars['sap_vm_provision_' + sap_vm_provision_iac_platform + '_host_specifications_dictionary'][sap_vm_provision_host_specification_plan][scaleout_origin_host_spec | default(inventory_hostname)].keys() | map('regex_findall', '^sap_.*') | flatten | select() | list }}"
loop: "{{ lookup('ansible.builtin.vars', 'sap_vm_provision_' + sap_vm_provision_iac_platform + '_host_specifications_dictionary')[sap_vm_provision_host_specification_plan][scaleout_origin_host_spec | default(inventory_hostname)].keys() | map('regex_findall', '^sap_.*') | flatten | select() | list }}"
loop_control:
loop_var: host_spec_sap_item

Expand Down

0 comments on commit d90c358

Please sign in to comment.