mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2025-02-22 02:21:58 +01:00
Bugfix, issue with HA build for joining new nodes
This commit is contained in:
parent
23ba527bc2
commit
6090071982
@ -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 New Issue
Block a user