sap-linuxlab / ansible.playbooks_for_sap

Automation for SAP - Ansible Playbooks for SAP solution scenarios deployment to Infrastructure Platforms
Apache License 2.0
16 stars 15 forks source link

fix: vars lookup in NWAS HA role include #15

Closed ja9fuchs closed 4 months ago

ja9fuchs commented 4 months ago

This solves a problem with the vars[] construct, which did not resolve nested variables.

Previously the nested variable names were passed as {{ ... }} string values in the SAP HA role cluster resource setup.

- agent: ocf:heartbeat:Filesystem id: rsc_fs_DEF_ASCS02 instance_attrs: - attrs: - name: device value: '{{ nfs_mount_point | default('''') }}/usr/sap/DEF/ASCS02' - name: directory value: /usr/sap/DEF/ASCS02 - name: fstype value: '{{ nfs_mount_point_type | default('''') }}' - name: options value: '{{ nfs_mount_point_opts | default('''') }}' - name: force_unmount value: safe

Now it resolves correctly:

- agent: ocf:heartbeat:Filesystem id: rsc_fs_DEF_ASCS02 instance_attrs: - attrs: - name: device value: <...my-EFS-ID...>.amazonaws.com:/usr/sap/DEF/ASCS02 - name: directory value: /usr/sap/DEF/ASCS02 - name: fstype value: nfs - name: options value: defaults - name: force_unmount value: safe