mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-30 00:11:03 +01:00
22 lines
850 B
YAML
22 lines
850 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: reloaded docker-compose-restart-unhealthy.service
|
|
|
|
- name: create docker-compose-restart-unhealthy.timer
|
|
copy:
|
|
src: docker-compose-restart-unhealthy.timer
|
|
dest: "/etc/systemd/system/docker-compose-restart-unhealthy.timer"
|
|
notify: restart docker-compose-restart-unhealthy.timer |