---
- 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