mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-24 03:05:03 +01:00
22 lines
834 B
YAML
22 lines
834 B
YAML
- name: "create {{docker_compose_restart_unhealthy}}"
|
|
file:
|
|
path: "{{docker_compose_restart_unhealthy}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create docker-compose-restart-unhealthy.py
|
|
copy:
|
|
src: docker-compose-restart-unhealthy.py
|
|
dest: "{{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 |