ansible-playbooks/roles/system/external_backup/tasks/main.yml

15 lines
432 B
YAML
Raw Normal View History

---
- name: Configure external storage device
ansible.posix.mount:
state: mounted
path: /mnt/external-storage
src: UUID=665A391C5A38EB07
fstype: ntfs
opts: nofail,noauto,user,x-systemd.automount,x-systemd.device-timeout=2,x-systemd.idle-timeout=2
- name: Add the borgmatic configuration
copy:
src: "{{ role_path }}/files/borgmatic.yml"
dest: /etc/borgmatic.d/external-storage.yaml
setype: etc_t