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.
14 lines
447 B
14 lines
447 B
- name: Install or update required packages
|
|
package:
|
|
name: "{{ item }}"
|
|
state: latest
|
|
loop:
|
|
- apparmor
|
|
- apparmor-utils
|
|
become: yes
|
|
when: ansible_distribution|lower == 'debian'
|
|
|
|
- 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 --node-ip {{ k3s_node_address }} && sleep 5"
|
|
when: k3s_bootstrap
|
|
throttle: 1
|
|
|