ansible-borgbackup/tasks/main.yml

19 lines
490 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: >
2017-10-01 11:05:59 +00:00
borgbackup_required == True or
2017-10-01 17:51:38 +00:00
inventory_hostname in groups.borgbackup_servers
2017-09-07 18:35:01 +00:00
- include: borg-server.yml
2017-10-01 17:51:38 +00:00
when: inventory_hostname in groups.borgbackup_servers
2017-09-07 18:35:01 +00:00
- include: borg-client.yml
2017-09-12 18:49:20 +00:00
when: >
2017-10-01 11:05:59 +00:00
borgbackup_required == True and
2017-10-01 17:51:38 +00:00
inventory_hostname not in groups.borgbackup_servers
2017-10-01 17:24:50 +00:00
- include: management.yml
when: >
inventory_hostname in groups.borgbackup_management and
2017-10-01 17:51:38 +00:00
inventory_hostname not in groups.borgbackup_servers