computer-playbook/roles/native-docker-compose-restart-unhealthy/tasks/main.yml

22 lines
855 B
YAML

- name: "create {{docker_docker_compose_restart_unhealthy}}"
file:
path: "{{docker_docker_compose_restart_unhealthy}}"
state: directory
mode: 0755
- name: create docker-compose-restart-unhealthy.py
copy:
src: docker-compose-restart-unhealthy.py
dest: "{{docker_docker_compose_restart_unhealthy}}docker-compose-restart-unhealthy.py"
- name: create docker-compose-restart-unhealthy.service
template:
src: docker-compose-restart-unhealthy.service.j2
dest: /etc/systemd/system/docker-compose-restart-unhealthy.service
notify: reload docker-compose-restart-unhealthy.service
- name: create docker-compose-restart-unhealthy.timer
template:
src: docker-compose-restart-unhealthy.timer.j2
dest: "/etc/systemd/system/docker-compose-restart-unhealthy.timer"
notify: restart docker-compose-restart-unhealthy.timer