diff --git a/playbooks/setup-lxc.yaml b/playbooks/setup-lxc.yaml index 0cf0913..40c1f42 100644 --- a/playbooks/setup-lxc.yaml +++ b/playbooks/setup-lxc.yaml @@ -21,16 +21,6 @@ _inventory_file: "{{ inventory_file }}" _inventory_hostname: "{{ inventory_hostname }}" - - name: Run restore-backups.yaml runbook if either dir is missing - ansible.builtin.command: - cmd: >- - ansible-playbook ./restore-backups.yml - -i {{ playbook_dir }}/../inventory.yml - --limit {{ _inventory_hostname }} - -e confirm_restore=true - delegate_to: localhost - when: not apps_docker_dir.stat.exists or not apps_data_dir.stat.exists - - name: Setup-restic.yml - setup restic ansible.builtin.import_tasks: ./setup-restic.yml @@ -47,9 +37,9 @@ - name: Run restore-backups.yaml runbook if either dir is missing ansible.builtin.command: cmd: >- - ansible-playbook ../restore-backups.yaml - -i {{ inventory_file }} - --limit {{ inventory_hostname }} + ansible-playbook ./restore-backups.yml + -i {{ playbook_dir }}/../inventory.yml + --limit {{ _inventory_hostname }} -e confirm_restore=true delegate_to: localhost when: not apps_docker_dir.stat.exists or not apps_data_dir.stat.exists