Fix missing become. Restore reverse-proxy volumes from their dedicated buckets.
This commit is contained in:
parent
1bddbe179e
commit
b17d36110d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user