You cannot 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
417 B
YAML
14 lines
417 B
YAML
- name: Install K3s agent
|
|
command: /root/k3s_install.sh {{ type }}
|
|
register: command
|
|
changed_when: "'No change detected' not in command.stdout"
|
|
until: "command is not failed"
|
|
retries: 2
|
|
delay: 10
|
|
|
|
- name: Restart when config changed, but install already done
|
|
service:
|
|
name: k3s
|
|
status: restarted
|
|
when: "inventory_hostname != groups['kubernetes'][0] and not command.changed and config.changed"
|