duplicate task entry
This commit is contained in:
@@ -21,16 +21,6 @@
|
|||||||
_inventory_file: "{{ inventory_file }}"
|
_inventory_file: "{{ inventory_file }}"
|
||||||
_inventory_hostname: "{{ inventory_hostname }}"
|
_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
|
- name: Setup-restic.yml - setup restic
|
||||||
ansible.builtin.import_tasks: ./setup-restic.yml
|
ansible.builtin.import_tasks: ./setup-restic.yml
|
||||||
|
|
||||||
@@ -47,9 +37,9 @@
|
|||||||
- name: Run restore-backups.yaml runbook if either dir is missing
|
- name: Run restore-backups.yaml runbook if either dir is missing
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: >-
|
cmd: >-
|
||||||
ansible-playbook ../restore-backups.yaml
|
ansible-playbook ./restore-backups.yml
|
||||||
-i {{ inventory_file }}
|
-i {{ playbook_dir }}/../inventory.yml
|
||||||
--limit {{ inventory_hostname }}
|
--limit {{ _inventory_hostname }}
|
||||||
-e confirm_restore=true
|
-e confirm_restore=true
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
when: not apps_docker_dir.stat.exists or not apps_data_dir.stat.exists
|
when: not apps_docker_dir.stat.exists or not apps_data_dir.stat.exists
|
||||||
|
|||||||
Reference in New Issue
Block a user