mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
solved bugs
This commit is contained in:
parent
14ed1bb956
commit
82c7098497
@ -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"
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user