mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-10-23 03:22:03 +02:00
Fix getting random token for agents
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
1 parent
be3b0f4d54
commit
a8784f41c4
1 file changed
+2
-1
@@ -65,9 +65,10 @@
|
||||
register: _agent_config_result
|
||||
|
||||
- name: Get the token from the first server
|
||||
when: token is not defined and hostvars[groups[server_group][0]].random_token is defined
|
||||
# noqa var-naming[no-role-prefix]
|
||||
ansible.builtin.set_fact:
|
||||
token: "{{ hostvars[groups[server_group][0]].token }}"
|
||||
token: "{{ hostvars[groups[server_group][0]].random_token }}"
|
||||
|
||||
- name: Set k3s agent environment file based on init system
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in new issue
Block a user