add required packages

master
Michael Wilson 3 years ago
parent 17d2d00e17
commit 20d8e8e7a2
  1. 9
      linux/k3s/master/tasks/main.yml
  2. 9
      linux/k3s/node/tasks/main.yml

@ -1,3 +1,12 @@
- name: Install or update required packages
package:
name: "{{ item }}"
state: latest
loop:
- apparmor
- apparmor-utils
become: yes
- name: run cluster init on first node
shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_master_token }} sh -s - server --cluster-init"
when: k3s_bootstrap

@ -1,3 +1,12 @@
- name: Install or update required packages
package:
name: "{{ item }}"
state: latest
loop:
- apparmor
- apparmor-utils
become: yes
- name: join node to cluster
shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_node_token }} sh -s - server --server https://{{ k3s_master_address }}:6443 && sleep 5"
when: k3s_bootstrap

Loading…
Cancel
Save