mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-29 12:55:51 +01:00
17 lines
359 B
YAML
17 lines
359 B
YAML
---
|
|
|
|
- name: Ensure k3s service is started
|
|
ansible.builtin.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
|
|
ansible.builtin.systemd:
|
|
name: k3s
|
|
state: started
|
|
enabled: true
|
|
scope: user
|
|
when: k3s_non_root is defined and k3s_non_root
|