2023-03-26 17:05:06 +02:00
|
|
|
- name: "create {{docker_health_check_folder}}"
|
2022-12-25 13:40:38 +01:00
|
|
|
file:
|
2023-03-26 17:05:06 +02:00
|
|
|
path: "{{docker_health_check_folder}}"
|
2022-12-25 13:40:38 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
2023-04-18 15:41:14 +02:00
|
|
|
- name: create server_docker-health-check.sh
|
2022-12-25 13:40:38 +01:00
|
|
|
copy:
|
2023-04-18 15:41:14 +02:00
|
|
|
src: server_docker-health-check.sh
|
|
|
|
dest: "{{docker_health_check_folder}}server_docker-health-check.sh"
|
2022-12-25 13:40:38 +01:00
|
|
|
|
2023-04-18 15:41:14 +02:00
|
|
|
- name: create server_docker-health-check.service
|
|
|
|
template: src=server_docker-health-check.service.j2 dest=/etc/systemd/system/server_docker-health-check.service
|
|
|
|
notify: reload server_docker-health-check.service
|
2022-12-25 13:40:38 +01:00
|
|
|
|
2023-04-18 15:41:14 +02:00
|
|
|
- name: create server_docker-health-check.timer
|
2023-04-15 17:06:10 +02:00
|
|
|
template:
|
2023-04-18 15:41:14 +02:00
|
|
|
src: server_docker-health-check.timer.j2
|
|
|
|
dest: "/etc/systemd/system/server_docker-health-check.timer"
|
|
|
|
notify: restart server_docker-health-check.timer
|