collection of ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
401 B

- name: Install or update required packages
package:
name: "{{ item }}"
state: latest
loop:
- apparmor
- apparmor-utils
become: yes
when: ansible_distribution|lower == 'debian'
- name: run cluster init on first node
shell: "curl -sfL https://get.k3s.io | K3S_TOKEN={{ k3s_master_token }} sh -s - server --cluster-init --node-ip {{ k3s_node_address }}"
when: k3s_bootstrap