Skip to content

Commit

Permalink
fixed restore issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arodier committed Sep 19, 2023
1 parent 056ac14 commit 13e8e7f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions roles/borg-backup/tasks/restore/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
---

- name: Check if one ore more backup are marked for restoration
ansible.builtin.set_fact:
restore_list: >-
{{ backup.locations | selectattr("restore", "defined")
| selectattr("restore", "equalto", true) | list | length }}
tags: facts,restore

- name: Restore backups from a previous installation
when: restore_list | int > 0
ansible.builtin.include_tasks: 'restore-all.yml'
tags: restore

- name: Deploy the services to restore the backup
notify: Start restore services
tags: restore
Expand Down

0 comments on commit 13e8e7f

Please sign in to comment.