mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-10-30 07:59:38 +01:00
Fix adding token to existing cluster (#360)
Signed-off-by: James Otten <jamesotten1@gmail.com>
This commit is contained in:
parent
2d98982809
commit
bc03d1c0d0
@ -35,13 +35,13 @@
|
||||
INSTALL_K3S_EXEC: "agent"
|
||||
changed_when: true
|
||||
|
||||
- name: Add the token for joining the cluster to the environment
|
||||
no_log: true # avoid logging the server token
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ systemd_dir }}/k3s-agent.service.env"
|
||||
line: "{{ item }}"
|
||||
with_items:
|
||||
- "K3S_TOKEN={{ token }}"
|
||||
- name: Add the token for joining the cluster to the environment
|
||||
no_log: true # avoid logging the server token
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ systemd_dir }}/k3s-agent.service.env"
|
||||
line: "{{ item }}"
|
||||
with_items:
|
||||
- "K3S_TOKEN={{ token }}"
|
||||
|
||||
- name: Copy K3s service file
|
||||
register: k3s_agent_service
|
||||
|
Loading…
Reference in New Issue
Block a user