mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
solved docker-volume-backup bugs
This commit is contained in:
parent
f0b096a1a9
commit
c20158e400
@ -1,12 +1,12 @@
|
||||
- name: "reload server_docker-volume-backup service"
|
||||
- name: "reload docker-volume-backup.service"
|
||||
systemd:
|
||||
name: server_docker-volume-backup.service
|
||||
name: docker-volume-backup.service
|
||||
state: reloaded
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
- name: "restart server_docker-volume-backup timer"
|
||||
- name: "restart docker-volume-backup.timer"
|
||||
systemd:
|
||||
name: server_docker-volume-backup.timer
|
||||
name: docker-volume-backup.timer
|
||||
state: restarted
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
@ -1,22 +1,22 @@
|
||||
- name: Install pandas python package
|
||||
- name: install pandas python package
|
||||
pip:
|
||||
name: pandas
|
||||
|
||||
- name: pull server_docker-volume-backup.git
|
||||
- name: pull docker-volume-backup.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}}"
|
||||
update: yes
|
||||
|
||||
- name: configure server_docker-volume-backup.service
|
||||
- name: configure docker-volume-backup.service
|
||||
template:
|
||||
src: server_docker-volume-backup.service.j2
|
||||
dest: /etc/systemd/system/server_docker-volume-backup.service
|
||||
notify: reload server_docker-volume-backup service
|
||||
src: docker-volume-backup.service.j2
|
||||
dest: /etc/systemd/system/docker-volume-backup.service
|
||||
notify: reload docker-volume-backup.service
|
||||
|
||||
- name: configure server_docker-volume-backup.timer.tpl
|
||||
template: src=server_docker-volume-backup.timer.j2 dest=/etc/systemd/system/server_docker-volume-backup.timer
|
||||
notify: restart server_docker-volume-backup timer
|
||||
- name: configure docker-volume-backup.timer.tpl
|
||||
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
|
||||
copy:
|
||||
|
@ -4,4 +4,4 @@ OnFailure=systemd-email@%n.service
|
||||
|
||||
[Service]
|
||||
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
|
Loading…
Reference in New Issue
Block a user