ansible-role-k3s/tasks/operate/stop-k3s.yml
2020-12-12 14:27:59 +00:00

16 lines
361 B
YAML

---
- name: Ensure k3s service is stopped
ansible.builtin.systemd:
name: k3s
state: stopped
enabled: false
when: k3s_non_root is not defined or not k3s_non_root
- name: Ensure k3s service is started
ansible.builtin.systemd:
name: k3s
state: stopped
enabled: false
scope: user
when: k3s_non_root is defined and k3s_non_root