mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 18:55:03 +01:00
25 lines
902 B
YAML
25 lines
902 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
|