computer-playbook/roles/docker-health-check/tasks/main.yml

21 lines
662 B
YAML
Raw Normal View History

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-19 00:03:13 +02:00
- name: create docker-health-check.sh
2022-12-25 13:40:38 +01:00
copy:
2023-04-19 00:03:13 +02:00
src: docker-health-check.sh
dest: "{{docker_health_check_folder}}docker-health-check.sh"
2022-12-25 13:40:38 +01:00
2023-04-19 00:03:13 +02:00
- name: create docker-health-check.service
template: src=docker-health-check.service.j2 dest=/etc/systemd/system/docker-health-check.service
notify: reload docker-health-check.service
2022-12-25 13:40:38 +01:00
2023-04-19 00:03:13 +02:00
- name: create docker-health-check.timer
2023-04-15 17:06:10 +02:00
template:
2023-04-19 00:03:13 +02:00
src: docker-health-check.timer.j2
dest: "/etc/systemd/system/docker-health-check.timer"
notify: restart docker-health-check.timer