From 1270864229f715e3c27efff55e2cea63a2fec26c Mon Sep 17 00:00:00 2001 From: Ramon Perez Date: Fri, 4 Aug 2023 14:12:16 +0200 Subject: [PATCH] fix issue with extra var --- roles/monitor_agent_based_installer/defaults/main.yml | 3 +++ roles/monitor_agent_based_installer/tasks/main.yml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/monitor_agent_based_installer/defaults/main.yml b/roles/monitor_agent_based_installer/defaults/main.yml index 8148a413..e5e0343a 100644 --- a/roles/monitor_agent_based_installer/defaults/main.yml +++ b/roles/monitor_agent_based_installer/defaults/main.yml @@ -1,2 +1,5 @@ generated_dir: "{{ repo_root_path }}/generated" manifests_dir: "{{ generated_dir}}/{{ cluster_name }}" + +agent_based_installer_bootstrap_node: "{{ groups['masters'][0] }}" +host_ip_keyword: ansible_host diff --git a/roles/monitor_agent_based_installer/tasks/main.yml b/roles/monitor_agent_based_installer/tasks/main.yml index d6821e6a..2eb16368 100644 --- a/roles/monitor_agent_based_installer/tasks/main.yml +++ b/roles/monitor_agent_based_installer/tasks/main.yml @@ -17,7 +17,6 @@ # Trying several times in case there are SSH connectivity issues - name: Gather logs from installation vars: - agent_based_installer_bootstrap_node: "{{ groups['masters'][0] }}" rendezvous_ip_address: "{{ hostvars[agent_based_installer_bootstrap_node][host_ip_keyword] }}" ansible.builtin.shell: cmd: "{{ agent_based_installer_path }} --log-level=debug gather bootstrap --bootstrap {{ rendezvous_ip_address }}"