2023-11-17 12:35:39 +01:00
|
|
|
- name: "create {{health_docker_folder}}"
|
2023-11-16 15:32:29 +01:00
|
|
|
file:
|
2023-11-17 12:35:39 +01:00
|
|
|
path: "{{health_docker_folder}}"
|
2023-11-16 15:32:29 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: create health-docker.sh
|
|
|
|
copy:
|
|
|
|
src: health-docker.sh
|
2023-11-17 12:35:39 +01:00
|
|
|
dest: "{{health_docker_folder}}health-docker.sh"
|
2023-11-16 15:32:29 +01:00
|
|
|
|
|
|
|
- name: create health-docker.service
|
|
|
|
template: src=health-docker.service.j2 dest=/etc/systemd/system/health-docker.service
|
|
|
|
notify: reload health-docker.service
|
|
|
|
|
|
|
|
- name: create health-docker.timer
|
|
|
|
template:
|
|
|
|
src: health-docker.timer.j2
|
|
|
|
dest: "/etc/systemd/system/health-docker.timer"
|
2023-11-16 19:43:54 +01:00
|
|
|
register: health_docker_timer
|
|
|
|
changed_when: health_docker_timer.changed or activate_all_timers | default(false) | bool
|
2023-11-16 15:32:29 +01:00
|
|
|
notify: restart health-docker.timer
|