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

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