ansible-role-k3s/tasks/operate/start-k3s.yml
Xan Manning f2a3f75f08 Added some validation steps, fixed issue with checksum, introducing rootless
as an option, however this is experimental in both K3s and this role.
2019-12-22 18:54:25 +00:00

17 lines
327 B
YAML

---
- name: Ensure k3s service is started
systemd:
name: k3s
state: started
enabled: true
when: k3s_non_root is not defined or not k3s_non_root
- name: Ensure k3s service is started
systemd:
name: k3s
state: started
enabled: true
scope: user
when: k3s_non_root is defined and k3s_non_root