2022-01-23 22:01:21 +01:00
|
|
|
- name: Install pandas python package
|
|
|
|
pip:
|
|
|
|
name: pandas
|
|
|
|
|
2021-10-18 13:37:20 +02:00
|
|
|
- name: pull docker-volume-backup.git
|
2020-12-24 14:27:31 +01:00
|
|
|
git:
|
|
|
|
repo: "https://github.com/kevinveenbirkenbach/docker-volume-backup.git"
|
|
|
|
dest: "/usr/local/bin/docker-volume-backup"
|
|
|
|
update: yes
|
|
|
|
|
|
|
|
- name: configure docker-volume-backup.service.tpl
|
|
|
|
template: src=docker-volume-backup.service dest=/etc/systemd/system/docker-volume-backup.service
|
|
|
|
notify: restart docker-volume-backup service
|
|
|
|
|
|
|
|
- name: configure docker-volume-backup.timer.tpl
|
|
|
|
template: src=docker-volume-backup.timer dest=/etc/systemd/system/docker-volume-backup.timer
|
|
|
|
notify: restart docker-volume-backup timer
|
2022-01-23 21:43:05 +01:00
|
|
|
|
|
|
|
- name: create /usr/local/bin/docker-volume-backup/databases.csv
|
|
|
|
copy:
|
|
|
|
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}/usr/local/bin/docker-volume-backup/databases.csv"
|
|
|
|
dest: /usr/local/bin/docker-volume-backup/databases.csv
|
|
|
|
owner: root
|
|
|
|
group: root
|