From b1c33e0a52e18a1e6178f12c8dc01f3361b02c1f Mon Sep 17 00:00:00 2001 From: Clemens Kaserer Date: Sun, 26 Sep 2021 22:32:04 +0200 Subject: [PATCH] use short inventory_hostname --- tasks/configure-HA.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure-HA.yml b/tasks/configure-HA.yml index 4c9896a..283b6c5 100644 --- a/tasks/configure-HA.yml +++ b/tasks/configure-HA.yml @@ -56,7 +56,7 @@ - name: Set the microk8s join command on the microk8s node ansible.builtin.command: cmd: "{{ microk8s_join_command.stdout }}" - when: microk8s_cluster_node.stdout.find(inventory_hostname) == -1 + when: microk8s_cluster_node.stdout.find(inventory_hostname_short) == -1 when: inventory_hostname != microk8s_designated_host tags: