ansible-role-k3s/handlers/main.yml
Xan Manning 141b6f2018 Numerous bug fixes to do with permissions and regressions.
Fix issue #25, check k3s_bind_address for readiness check
Fix issue #24, become for tasks that require root
2020-05-20 19:55:33 +01:00

23 lines
569 B
YAML

---
- name: reload systemd
systemd:
daemon_reload: true
scope: "{{ k3s_systemd_context }}"
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
- name: restart k3s
systemd:
name: k3s
state: restarted
scope: "{{ k3s_systemd_context }}"
enabled: true
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
- name: restart docker
systemd:
name: docker
state: restarted
enabled: true
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"