2019-12-20 20:03:27 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Ensure k3s service is started
|
2020-12-12 15:27:59 +01:00
|
|
|
ansible.builtin.systemd:
|
2019-12-20 20:03:27 +01:00
|
|
|
name: k3s
|
|
|
|
state: started
|
2021-01-30 18:23:31 +01:00
|
|
|
enabled: "{{ k3s_start_on_boot }}"
|
2019-12-21 18:11:30 +01:00
|
|
|
when: k3s_non_root is not defined or not k3s_non_root
|
2021-01-30 18:23:31 +01:00
|
|
|
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
|
2019-12-21 18:11:30 +01:00
|
|
|
|
|
|
|
- name: Ensure k3s service is started
|
2020-12-12 15:27:59 +01:00
|
|
|
ansible.builtin.systemd:
|
2019-12-21 18:11:30 +01:00
|
|
|
name: k3s
|
|
|
|
state: started
|
2021-01-30 18:23:31 +01:00
|
|
|
enabled: "{{ k3s_start_on_boot }}"
|
2019-12-21 18:11:30 +01:00
|
|
|
scope: user
|
|
|
|
when: k3s_non_root is defined and k3s_non_root
|
2021-01-30 18:23:31 +01:00
|
|
|
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
|