solved docker-volume-backup bugs

This commit is contained in:
Kevin Veen-Birkenbach 2023-04-18 23:23:46 +02:00
parent 3a867c3267
commit 3391980cde
3 changed files with 15 additions and 15 deletions

View File

@ -1,12 +1,12 @@
- name: "reload server_docker-volume-backup service" - name: "reload docker-volume-backup.service"
systemd: systemd:
name: server_docker-volume-backup.service name: docker-volume-backup.service
state: reloaded state: reloaded
enabled: yes enabled: yes
daemon_reload: yes daemon_reload: yes
- name: "restart server_docker-volume-backup timer" - name: "restart docker-volume-backup.timer"
systemd: systemd:
name: server_docker-volume-backup.timer name: docker-volume-backup.timer
state: restarted state: restarted
enabled: yes enabled: yes
daemon_reload: yes daemon_reload: yes

View File

@ -1,22 +1,22 @@
- name: Install pandas python package - name: install pandas python package
pip: pip:
name: pandas name: pandas
- name: pull server_docker-volume-backup.git - name: pull docker-volume-backup.git
git: git:
repo: "https://github.com/kevinveenbirkenbach/server_docker-volume-backup.git" repo: "https://github.com/kevinveenbirkenbach/docker-volume-backup.git"
dest: "{{docker_volume_backup_folder}}" dest: "{{docker_volume_backup_folder}}"
update: yes update: yes
- name: configure server_docker-volume-backup.service - name: configure docker-volume-backup.service
template: template:
src: server_docker-volume-backup.service.j2 src: docker-volume-backup.service.j2
dest: /etc/systemd/system/server_docker-volume-backup.service dest: /etc/systemd/system/docker-volume-backup.service
notify: reload server_docker-volume-backup service notify: reload docker-volume-backup.service
- name: configure server_docker-volume-backup.timer.tpl - name: configure docker-volume-backup.timer.tpl
template: src=server_docker-volume-backup.timer.j2 dest=/etc/systemd/system/server_docker-volume-backup.timer template: src=docker-volume-backup.timer.j2 dest=/etc/systemd/system/docker-volume-backup.timer
notify: restart server_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: copy:

View File

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