only install apparmor on debian

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

@ -6,6 +6,7 @@
- apparmor - apparmor
- apparmor-utils - apparmor-utils
become: yes become: yes
when: ansible_distribution|lower == 'debian'
- name: run cluster init on first node - name: run cluster init on first node
shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_master_token }} sh -s - server --cluster-init" shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_master_token }} sh -s - server --cluster-init"

@ -6,6 +6,7 @@
- apparmor - apparmor
- apparmor-utils - apparmor-utils
become: yes become: yes
when: ansible_distribution|lower == 'debian'
- name: join node to cluster - 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" shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_node_token }} sh -s - server --server https://{{ k3s_master_address }}:6443 && sleep 5"

Loading…
Cancel
Save