Files
ansible/archive/backup/tasks/main.yml
2024-07-22 12:10:55 -07:00

22 lines
398 B
YAML
Executable File

---
- name: Pull Backup Repository
git:
repo: "{{ backup_repo }}"
dest: "{{ backup_repo_dir }}"
update: no
- name: Ensure correct file/dir ownership
file:
path: "{{ backup_repo_dir }}"
recurse: True
owner: opal
group: opal
- name: Copy Borgmatic Cronjob
copy:
src: borgmatic-cron
dest: /etc/cron.d/borgmatic
mode: u+x
owner: root
group: root