docker_systemd_service/handlers/main.yml

8 lines
255 B
YAML
Raw Normal View History

2023-12-03 14:39:24 +00:00
---
# handlers file for docker_systemd_service
2023-12-03 21:56:21 +00:00
- name: "restart container {{ container_name }}"
service:
name: '{{ service_name }}.service'
state: restarted
when: service_restart and service_state != "stopped" and not enable_and_start.changed