ansible-borgbackup/tasks/main.yml

21 lines
448 B
YAML
Raw Normal View History

2017-09-07 18:35:01 +00:00
---
- include: install.yml
2017-09-12 18:49:20 +00:00
when: >
backup_required == True or
inventory_hostname in groups.backupservers or
restore == True
2017-09-07 18:35:01 +00:00
- include: borg-server.yml
when: inventory_hostname in groups.backupservers
- include: borg-client.yml
2017-09-12 18:49:20 +00:00
when: >
backup_required == True and
inventory_hostname not in groups.backupservers
2017-09-07 18:35:01 +00:00
- include: restore.yml
2017-09-12 18:49:20 +00:00
when: >
restore == True and
inventory_hostname not in groups.backupservers