solved bugs

This commit is contained in:
Kevin Veen-Birkenbach 2023-03-26 23:29:30 +02:00
parent 14ed1bb956
commit 82c7098497
7 changed files with 15 additions and 12 deletions

View File

@ -1,7 +1,7 @@
- name: "restart docker-compose-restart-unhealthy.service"
- name: "reloaded docker-compose-restart-unhealthy.service"
systemd:
name: docker-compose-restart-unhealthy.service
state: restarted
state: reloaded
enabled: yes
daemon_reload: yes
- name: "restart docker-compose-restart-unhealthy.timer"

View File

@ -5,12 +5,15 @@
mode: 0755
- name: create docker-compose-restart-unhealthy.py
template: src=docker-compose-restart-unhealthy.py.j2 dest={{docker_docker_compose_restart_unhealthy}}docker-compose-restart-unhealthy.py
notify: restart docker-compose-restart-unhealthy.service
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-health-check.service.j2 dest=/etc/systemd/system/docker-compose-restart-unhealthy.service
notify: restart 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:

View File

@ -4,4 +4,4 @@ OnFailure=systemd-email@%n.service
[Service]
Type=oneshot
ExecStart=/bin/bash {{docker_docker_compose_restart_unhealthy}}docker-compose-restart-unhealthy.py
ExecStart=/bin/python {{docker_docker_compose_restart_unhealthy}}docker-compose-restart-unhealthy.py

View File

@ -16,9 +16,9 @@
template: src=docker-volume-backup.timer.j2 dest=/etc/systemd/system/docker-volume-backup.timer
notify: restart docker-volume-backup timer
- name: create {{docker_volume_backup_folder}}/databases.csv
- name: create {{docker_volume_backup_folder}}databases.csv
copy:
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}{{docker_volume_backup_folder}}/databases.csv"
dest: "{{docker_volume_backup_folder}}/databases.csv"
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}{{docker_volume_backup_folder}}databases.csv"
dest: "{{docker_volume_backup_folder}}databases.csv"
owner: root
group: root

View File

@ -4,4 +4,4 @@ OnFailure=systemd-email@%n.service
[Service]
Type=oneshot
ExecStart=/usr/bin/python {{docker_volume_backup_folder}}/docker-volume-backup.py
ExecStart=/usr/bin/python {{docker_volume_backup_folder}}docker-volume-backup.py

View File

@ -11,7 +11,7 @@
mode: 0755
- name: configure systemd-email.sh
template: src=systemd-email.sh.j2 dest={{systemd_email_folder}}bin/systemd-email.sh
template: src=systemd-email.sh.j2 dest={{systemd_email_folder}}systemd-email.sh
- name: configure systemd-email.service
template: src=systemd-email@.service.j2 dest=/etc/systemd/system/systemd-email@.service