mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-28 04:45:03 +01:00
solved docker-volume-backup bugs
This commit is contained in:
parent
3a867c3267
commit
3391980cde
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user