From 3f54e88e30d3e62312b3f703a63f71ea0ae94956 Mon Sep 17 00:00:00 2001 From: Harm Jan Stam Date: Tue, 19 Dec 2023 16:38:23 +0100 Subject: [PATCH] Import KV secrets in SCS HA Installation Playbook (#518) "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'sap_fencing_spn_client_id'. --- .../playbook_05_00_00_sap_scs_install.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/deploy/ansible/playbook_05_00_00_sap_scs_install.yaml b/deploy/ansible/playbook_05_00_00_sap_scs_install.yaml index 37f275a4bb..c3f67527b9 100644 --- a/deploy/ansible/playbook_05_00_00_sap_scs_install.yaml +++ b/deploy/ansible/playbook_05_00_00_sap_scs_install.yaml @@ -70,15 +70,6 @@ - scs_high_availability or database_high_availability tags: - 0.2-wincluster-witness -# MKD - These two tasks (Above & Below) seem to achieve the same thing? - - name: "SCS Installation Playbook: - Read/Create key vault secrets" - ansible.builtin.include_role: - name: roles-misc/0.2-kv-secrets - public: true - vars: - operation: fencing - tags: - - kv-secrets - name: "SCS Installation Playbook: - Read storage account details" ansible.builtin.include_role: @@ -443,6 +434,15 @@ tags: - always + - name: "SCS HA Installation Playbook: - Read/Create key vault secrets" + ansible.builtin.include_role: + name: roles-misc/0.2-kv-secrets + public: true + vars: + operation: fencing + tags: + - kv-secrets + - name: "SCS HA Installation Playbook: - Initialize facts... Fencing" ansible.builtin.set_fact: fencing_spn_client_id: "{% if not use_msi_for_clusters %}{{ hostvars.localhost.sap_fencing_spn_client_id }}{% endif %}"