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 b58f2c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/k3s/post/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@
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"
run_once: true
with_items: "{{ groups['node'] }}"

0 comments on commit b58f2c4

Please sign in to comment.