computer-playbook/roles/native-docker-volume-backup/tasks/main.yml

25 lines
903 B
YAML

- name: Install pandas python package
pip:
name: pandas
- name: pull docker-volume-backup.git
git:
repo: "https://github.com/kevinveenbirkenbach/docker-volume-backup.git"
dest: "{{docker_volume_backup_folder}}"
update: yes
- name: configure docker-volume-backup.service.tpl
template: src=docker-volume-backup.service.j2 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.j2 dest=/etc/systemd/system/docker-volume-backup.timer
notify: restart docker-volume-backup timer
- 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
owner: root
group: root