diff --git a/tasks/deploy_reverse-proxy.yml b/tasks/deploy_reverse-proxy.yml index 60d8219..45ced26 100644 --- a/tasks/deploy_reverse-proxy.yml +++ b/tasks/deploy_reverse-proxy.yml @@ -46,7 +46,7 @@ - name: restore volume backup ansible.builtin.command: - cmd: "duplicity restore --archive-dir {{ DUPLICITY_ARCHIVE_DIR }} --name {{ item }} swift://backup_ovh1 /mnt/volumes/{{ item }}" + cmd: "duplicity restore --archive-dir {{ DUPLICITY_ARCHIVE_DIR }} --name {{ item }} swift://{{ item }} /mnt/volumes/{{ item }}/data" environment: SWIFT_USERNAME: "{{ OS_USERNAME }}" SWIFT_PASSWORD: "{{ OS_PASSWORD }}" @@ -66,6 +66,7 @@ failed_when: duplicity_result is failed and (duplicity_result.rc is not defined or duplicity_result.rc != 11) changed_when: duplicity_result.rc is defined and duplicity_result.rc == 0 when: not reverse_proxy_installed_flag.stat.exists + become: true # A local volume is needed to store install states - name: Create /mnt/volumes/install_states directory if it does not exist