mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-30 00:11:03 +01:00
27 lines
908 B
YAML
27 lines
908 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
|
|
template:
|
|
src: docker-volume-backup.service.j2
|
|
dest: /etc/systemd/system/docker-volume-backup.service
|
|
notify: reload 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
|