Ansible_workstation/roles/borgmatic/molecule/default/converge.yml

27 lines
514 B
YAML

---
- name: Converge
hosts: all
become: yes
vars:
- borg_source_directories:
- /media/test1/
- /media/test2/
- borg_repository:
- /backup/
pre_tasks:
- name: Update apt cache
apt:
update_cache: yes
- name: Create sources directories
file:
path: "{{ item }}"
state: directory
with_items: "{{ borg_source_directories + borg_repository}}"
tasks:
- name: "Include borgmatic"
include_role:
name: "borgmatic"