Skip to content

Commit

Permalink
Fix Lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Vukovic <[email protected]>
  • Loading branch information
anon-software committed Nov 11, 2024
1 parent 9ee4f3f commit 123f9c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion roles/k3s_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
changed_when: true

- name: Get the token from the first server
set_fact:
ansible.builtin.set_fact:
token: "{{ hostvars[groups[server_group][0]].token }}"

- name: Delete any existing token from the environment if different from the new one
Expand Down
8 changes: 4 additions & 4 deletions roles/k3s_server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,16 @@
when: token is not defined
block:
- name: Wait for token
wait_for:
ansible.builtin.wait_for:
path: /var/lib/rancher/k3s/server/token

- name: Read node-token from master
slurp:
ansible.builtin.slurp:
src: /var/lib/rancher/k3s/server/token
register: node_token

- name: Store Master node-token
set_fact:
ansible.builtin.set_fact:
token: "{{ node_token.content | b64decode | regex_replace('\n', '') }}"

- name: Start other server if any and verify status
Expand All @@ -206,7 +206,7 @@
- inventory_hostname != groups[server_group][0]
block:
- name: Get the token from the first server
set_fact:
ansible.builtin.set_fact:
token: "{{ hostvars[groups[server_group][0]].token }}"

- name: Delete any existing token from the environment if different from the new one
Expand Down

0 comments on commit 123f9c4

Please sign in to comment.