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

27 lines
978 B
YAML

- name: Install pandas python package
pip:
name: pandas
- name: pull server_docker-volume-backup.git
git:
repo: "https://github.com/kevinveenbirkenbach/server_docker-volume-backup.git"
dest: "{{docker_volume_backup_folder}}"
update: yes
- name: configure server_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
- 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: 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