mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-10 07:23:30 +01:00
Bugfix, issue with HA build for joining new nodes
This commit is contained in:
parent
23ba527bc2
commit
6090071982
1 changed files with 4 additions and 0 deletions
|
@ -59,8 +59,12 @@
|
|||
- name: Ensure control node is delegated to for obtaining a token
|
||||
set_fact:
|
||||
k3s_control_delegate: "{{ k3s_control_delegate_raw.stdout.split(' @@@ ')[0] }}"
|
||||
when: k3s_control_delegate is not defined
|
||||
|
||||
- name: Ensure the control node address is registered in Ansible
|
||||
set_fact:
|
||||
k3s_control_node_address: "{{ hostvars[k3s_control_delegate].ansible_host | default(hostvars[k3s_control_delegate].ansible_fqdn) }}"
|
||||
when: k3s_control_node_address is not defined
|
||||
|
||||
when: k3s_control_node_address is not defined
|
||||
or k3s_control_delegate is not defined
|
||||
|
|
Loading…
Reference in a new issue