mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-29 16:01:04 +01:00
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
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
|
|
register: git_result
|
|
ignore_errors: true
|
|
|
|
- name: Warn if repo is not reachable
|
|
debug:
|
|
msg: "Warning: Repository is not reachable."
|
|
when: git_result.failed
|
|
|
|
- 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
|