2023-04-19 00:03:13 +02:00
|
|
|
- name: "create {{docker_compose_restart_unhealthy}}"
|
2023-03-26 20:36:36 +02:00
|
|
|
file:
|
2023-04-19 00:03:13 +02:00
|
|
|
path: "{{docker_compose_restart_unhealthy}}"
|
2023-03-26 20:36:36 +02:00
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
2023-04-19 00:03:13 +02:00
|
|
|
- name: create docker-compose-restart-unhealthy.py
|
2023-03-26 23:29:30 +02:00
|
|
|
copy:
|
2023-04-19 00:03:13 +02:00
|
|
|
src: docker-compose-restart-unhealthy.py
|
|
|
|
dest: "{{docker_compose_restart_unhealthy}}docker-compose-restart-unhealthy.py"
|
2023-03-26 20:36:36 +02:00
|
|
|
|
2023-04-19 00:03:13 +02:00
|
|
|
- name: create docker-compose-restart-unhealthy.service
|
2023-03-26 23:29:30 +02:00
|
|
|
template:
|
2023-04-19 00:03:13 +02:00
|
|
|
src: docker-compose-restart-unhealthy.service.j2
|
|
|
|
dest: /etc/systemd/system/docker-compose-restart-unhealthy.service
|
|
|
|
notify: reload docker-compose-restart-unhealthy.service
|
2023-03-26 20:36:36 +02:00
|
|
|
|
2023-04-19 00:03:13 +02:00
|
|
|
- name: create docker-compose-restart-unhealthy.timer
|
2023-04-15 17:06:10 +02:00
|
|
|
template:
|
2023-04-19 00:03:13 +02:00
|
|
|
src: docker-compose-restart-unhealthy.timer.j2
|
|
|
|
dest: "/etc/systemd/system/docker-compose-restart-unhealthy.timer"
|
|
|
|
notify: restart docker-compose-restart-unhealthy.timer
|