Skip to content

Commit

Permalink
use short inventory_hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
ckaserer committed Sep 26, 2021
1 parent 4c13ab6 commit b1c33e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/configure-HA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b1c33e0

Please sign in to comment.