ansible-role-k3s/handlers/main.yml
2020-04-22 16:42:45 +02:00

22 lines
485 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