mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
21 lines
662 B
YAML
21 lines
662 B
YAML
- name: "create {{docker_health_check_folder}}"
|
|
file:
|
|
path: "{{docker_health_check_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create docker-health-check.sh
|
|
copy:
|
|
src: docker-health-check.sh
|
|
dest: "{{docker_health_check_folder}}docker-health-check.sh"
|
|
|
|
- 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
|
|
|
|
- name: create docker-health-check.timer
|
|
template:
|
|
src: docker-health-check.timer.j2
|
|
dest: "/etc/systemd/system/docker-health-check.timer"
|
|
notify: restart docker-health-check.timer
|