move restore to playbooks dir and attempt bugfix on setup-lxc

This commit is contained in:
tolerryan
2026-07-28 06:40:46 +00:00
parent f3865c8201
commit 94b9f9caea
2 changed files with 14 additions and 0 deletions

View File

@@ -15,6 +15,20 @@
#- name: Setup-netbird.yml - setting up netbird mesh vpn
# ansible.builtin.import_tasks: ./setup-netbird.yml
- name: Capture inventory context before delegating
ansible.builtin.set_fact:
_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