mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-19 11:17:06 +01:00
f2a3f75f08
as an option, however this is experimental in both K3s and this role.
17 lines
329 B
YAML
17 lines
329 B
YAML
---
|
|
|
|
- name: Ensure k3s service is stopped
|
|
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
|
|
systemd:
|
|
name: k3s
|
|
state: stopped
|
|
enabled: false
|
|
scope: user
|
|
when: k3s_non_root is defined and k3s_non_root
|