--- - name: Converge hosts: all become: yes vars: - borg_source_directories: - /media/test1/ - /media/test2/ - borg_repository: - /backup/ - borgmatic_config_name: config.yaml 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"