ansible-borgbackup/tasks/main.yml

19 lines
514 B
YAML
Raw Normal View History

2017-09-07 18:35:01 +00:00
---
2018-02-04 19:00:49 +00:00
- include_tasks: 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
2018-02-04 19:00:49 +00:00
- include_tasks: 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
2018-02-04 19:00:49 +00:00
- include_tasks: 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
2018-02-04 19:00:49 +00:00
- include_tasks: management.yml
2017-10-01 17:24:50 +00:00
when: >
inventory_hostname in groups.borgbackup_management and
2017-10-01 17:51:38 +00:00
inventory_hostname not in groups.borgbackup_servers