diff --git a/playbooks/roles/backup/tasks/main.yml b/playbooks/roles/backup/tasks/main.yml index 5f67f92..f36059d 100644 --- a/playbooks/roles/backup/tasks/main.yml +++ b/playbooks/roles/backup/tasks/main.yml @@ -35,14 +35,3 @@ ansible.builtin.import_tasks: recovery.yml - name: Import tasks specific to systemd ansible.builtin.import_tasks: systemd.yml - - - name: Verify service - ansible.builtin.command: - cmd: autorestic -v check - chdir: "{{ service_path }}" - changed_when: false - become: true - register: cmd_result_verify - until: "cmd_result_verify is not failed" - retries: 10 - delay: 10 diff --git a/playbooks/verify-backup-yml b/playbooks/verify-backup-yml new file mode 100644 index 0000000..b34bf67 --- /dev/null +++ b/playbooks/verify-backup-yml @@ -0,0 +1,15 @@ +--- +- name: Unlock backups + hosts: serguzim_net + become: true + tasks: + - name: Verify backup + ansible.builtin.command: + cmd: autorestic -v check + chdir: "{{ (services_path, 'backup') | path_join }}" + changed_when: false + become: true + register: cmd_result_verify + until: "cmd_result_verify is not failed" + retries: 10 + delay: 10