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