ansible-role-k3s/handlers/main.yml

22 lines
485 B
YAML
Raw Normal View History

2019-03-09 21:54:44 +01:00
---
- name: reload systemd
systemd:
daemon_reload: true
scope: "{{ k3s_systemd_context }}"
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
2019-03-09 21:54:44 +01:00
- name: restart k3s
systemd:
2019-03-09 21:54:44 +01:00
name: k3s
state: restarted
scope: "{{ k3s_systemd_context }}"
2019-03-09 21:54:44 +01:00
enabled: true
become: "{{ k3s_become_for_systemd | ternary(true, false, k3s_become_for_all) }}"
2019-03-09 21:54:44 +01:00
- name: restart docker
systemd:
2019-03-09 21:54:44 +01:00
name: docker
state: restarted
enabled: true