2019-03-09 21:54:44 +01:00
|
|
|
---
|
|
|
|
|
2019-10-01 22:31:35 +02:00
|
|
|
- name: reload systemd
|
2020-12-12 15:27:59 +01:00
|
|
|
ansible.builtin.systemd:
|
2019-10-01 22:31:35 +02:00
|
|
|
daemon_reload: true
|
2019-12-21 18:11:30 +01:00
|
|
|
scope: "{{ k3s_systemd_context }}"
|
2020-04-22 16:42:45 +02:00
|
|
|
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
|
2019-03-09 21:54:44 +01:00
|
|
|
|
|
|
|
- name: restart k3s
|
2020-12-12 15:27:59 +01:00
|
|
|
ansible.builtin.systemd:
|
2019-03-09 21:54:44 +01:00
|
|
|
name: k3s
|
|
|
|
state: restarted
|
2019-12-21 18:11:30 +01:00
|
|
|
scope: "{{ k3s_systemd_context }}"
|
2019-03-09 21:54:44 +01:00
|
|
|
enabled: true
|
2020-11-11 09:41:26 +01:00
|
|
|
retries: 3
|
2020-11-11 15:47:29 +01:00
|
|
|
delay: 3
|
2020-04-22 16:42:45 +02:00
|
|
|
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
|
2019-03-09 21:54:44 +01:00
|
|
|
|
|
|
|
- name: restart docker
|
2020-12-12 15:27:59 +01:00
|
|
|
ansible.builtin.systemd:
|
2019-03-09 21:54:44 +01:00
|
|
|
name: docker
|
|
|
|
state: restarted
|
|
|
|
enabled: true
|
2020-05-20 19:50:58 +02:00
|
|
|
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
|