Skip to content

Commit

Permalink
Fix adding token to existing cluster (#360)
Browse files Browse the repository at this point in the history
Signed-off-by: James Otten <[email protected]>
  • Loading branch information
james-otten authored Sep 12, 2024
1 parent 2d98982 commit bc03d1c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions roles/k3s_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc03d1c

Please sign in to comment.