mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-10-31 08:28:54 +01:00
17 lines
414 B
YAML
17 lines
414 B
YAML
---
|
|
|
|
- name: Ensure k3s control plane server is started
|
|
ansible.builtin.systemd:
|
|
name: k3s
|
|
state: started
|
|
enabled: "{{ k3s_start_on_boot }}"
|
|
scope: "{{ k3s_systemd_context }}"
|
|
register: k3s_systemd_start_k3s
|
|
until: k3s_systemd_start_k3s is succeeded
|
|
retries: 3
|
|
delay: 3
|
|
failed_when:
|
|
- k3s_systemd_start_k3s is not succeeded
|
|
- not ansible_check_mode
|
|
become: "{{ k3s_become }}"
|