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

22 lines
932 B
YAML
Raw Normal View History

- name: "create {{docker_docker_compose_restart_unhealthy}}"
file:
path: "{{docker_docker_compose_restart_unhealthy}}"
state: directory
mode: 0755
2023-04-18 15:41:14 +02:00
- name: create server_docker-compose-restart-unhealthy.py
2023-03-26 23:29:30 +02:00
copy:
2023-04-18 15:41:14 +02:00
src: server_docker-compose-restart-unhealthy.py
dest: "{{docker_docker_compose_restart_unhealthy}}server_docker-compose-restart-unhealthy.py"
2023-04-18 15:41:14 +02:00
- name: create server_docker-compose-restart-unhealthy.service
2023-03-26 23:29:30 +02:00
template:
2023-04-18 15:41:14 +02:00
src: server_docker-compose-restart-unhealthy.service.j2
dest: /etc/systemd/system/server_docker-compose-restart-unhealthy.service
notify: reload server_docker-compose-restart-unhealthy.service
2023-04-18 15:41:14 +02:00
- name: create server_docker-compose-restart-unhealthy.timer
2023-04-15 17:06:10 +02:00
template:
2023-04-18 15:41:14 +02:00
src: server_docker-compose-restart-unhealthy.timer.j2
dest: "/etc/systemd/system/server_docker-compose-restart-unhealthy.timer"
notify: restart server_docker-compose-restart-unhealthy.timer