docker_systemd_service/handlers/main.yml

11 lines
343 B
YAML
Raw Normal View History

2023-12-03 14:39:24 +00:00
---
# handlers file for docker_systemd_service
2023-12-04 22:10:02 +00:00
- name: "Restart service(s)"
ansible.builtin.service:
name: "{{ docker_systemd_service_name }}.service"
2023-12-03 21:56:21 +00:00
state: restarted
2023-12-04 22:10:02 +00:00
listen: "systemctl-restart-service"
when: docker_systemd_service_restart
and docker_systemd_service_state != "stopped"
and not _enable_and_start.changed