/
/
/
Ansible role that can run restic backups and push it to a remote storage server.
1---
2# Build Target Pairs Task
3# Creates host-service pairs for backup operations
4
5- name: Add host-service pairs for all services
6 set_fact:
7 target_host_services: "{{ target_host_services + [{'host': host_item.key, 'service': item}] }}"
8 loop: "{{ host_item.value }}"
9 when:
10 - backup_services | length == 0
11 vars:
12 host_item: "{{ host_item }}"
13 tags: [discovery, always]