Skip to content

Commit

Permalink
fix: Ensure role label on nodes
Browse files Browse the repository at this point in the history
it is generally more pleasant to set these roles.
  • Loading branch information
sagiru committed May 30, 2023
1 parent edd4838 commit 670de7a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/k3s/post/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@
file:
path: /tmp/k3s
state: absent

- name: Ensure worker role on nodes
ansible.builtin.command:
cmd: "k3s kubectl label node {{ item }} node-role.kubernetes.io/worker=worker --overwrite"
run_once: true
changed_when: false
with_items: "{{ groups['node'] }}"

0 comments on commit 670de7a

Please sign in to comment.