move restore to playbooks dir and attempt bugfix on setup-lxc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user