mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-25 12:15:51 +01:00
21 lines
467 B
YAML
21 lines
467 B
YAML
---
|
|
|
|
- name: Ensure k3s service is started
|
|
ansible.builtin.systemd:
|
|
name: k3s
|
|
state: started
|
|
enabled: "{{ k3s_start_on_boot }}"
|
|
when: k3s_non_root is not defined or not k3s_non_root
|
|
become: "{{ k3s_become }}"
|
|
|
|
- name: Ensure k3s service is started
|
|
ansible.builtin.systemd:
|
|
name: k3s
|
|
state: started
|
|
enabled: "{{ k3s_start_on_boot }}"
|
|
scope: user
|
|
when:
|
|
- k3s_non_root is defined
|
|
- k3s_non_root
|
|
become: "{{ k3s_become }}"
|