From 311ff9f309767d4353a3a3ce26268682311269c7 Mon Sep 17 00:00:00 2001 From: diademiemi Date: Tue, 18 Jun 2024 16:56:31 +0200 Subject: [PATCH] Fucky workaround lets try this --- tasks/setup/always.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/setup/always.yml b/tasks/setup/always.yml index 74b6ef3..e82c7cf 100644 --- a/tasks/setup/always.yml +++ b/tasks/setup/always.yml @@ -51,7 +51,7 @@ when: - ansible_play_hosts | sort | map('extract', hostvars, 'rke2_server_ip') | select('defined') | list | length == 0 - - ansible_default_ipv4.address != _rke2_server_ip + - hostvars[inventory_hostname].ansible_default_ipv4.address != _rke2_server_ip - rke2_auto_cluster # Only run when we should automatically cluster the servers - name: Return cluster information