mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 15:01:05 +01:00
22 lines
855 B
YAML
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 |