diff --git a/playbookconfig/src/playbooks/roles/vault/vault_restore/tasks/main.yml b/playbookconfig/src/playbooks/roles/vault/vault_restore/tasks/main.yml index 5b1a32b38..23d02e46b 100644 --- a/playbookconfig/src/playbooks/roles/vault/vault_restore/tasks/main.yml +++ b/playbookconfig/src/playbooks/roles/vault/vault_restore/tasks/main.yml @@ -59,16 +59,8 @@ shell: >- kubectl exec -n "vault" "{{ vault_manager_pod_name.stdout }}" -- bash -c "source /opt/script/init.sh; if [ -f $PAUSEFILE ]; then rm -f $PAUSEFILE; fi" 2>&1 - rescue: - - name: Clean up vault subdir if in standalone mode + - name: Clean up vault subdir file: path: "{{ vault_backup_dir }}" state: absent - when: op_mode == "standalone" become: yes - -- name: Cleanup vault subdir - file: - path: "{{ vault_backup_dir }}" - state: absent - become: yes