Fix idempotency.
This commit is contained in:
parent
6827be9fda
commit
d314dc3533
@ -95,22 +95,6 @@
|
||||
- common
|
||||
- always
|
||||
|
||||
- name: Register variable DUPLICITY_PASSPHRASE
|
||||
command: "cat {{ remote_workdir }}/duplicity_passphrase"
|
||||
register: cat_duplicity_passphrase
|
||||
changed_when: false
|
||||
tags:
|
||||
- common
|
||||
- always
|
||||
|
||||
- name: Set variable DUPLICITY_PASSPHRASE
|
||||
set_fact:
|
||||
"DUPLICITY_PASSPHRASE": "{{ cat_duplicity_passphrase.stdout }}"
|
||||
changed_when: false
|
||||
tags:
|
||||
- common
|
||||
- always
|
||||
|
||||
- name: Include role_configure_ovh_instance
|
||||
ansible.builtin.include_role:
|
||||
name: role_configure_ovh_instance
|
||||
|
@ -57,7 +57,7 @@
|
||||
SWIFT_REGIONNAME: "{{ SWIFT_REGIONNAME }}"
|
||||
SWIFT_TENANTNAME: "{{ OS_TENANT_NAME }}"
|
||||
SWIFT_AUTHVERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||
PASSPHRASE: "{{ DUPLICITY_PASSPHRASE}}"
|
||||
PASSPHRASE: "{{ duplicity_passphrase }}"
|
||||
# /usr/bin/duplicity uses "-s" python argument to prevent loading modules from user's python directory,
|
||||
# this variable will override that.
|
||||
PYTHONPATH: ".local/lib/python3.9/site-packages"
|
||||
|
@ -39,7 +39,7 @@
|
||||
SWIFT_REGIONNAME: "{{ SWIFT_REGIONNAME }}"
|
||||
SWIFT_TENANTNAME: "{{ OS_TENANT_NAME }}"
|
||||
SWIFT_AUTHVERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||
PASSPHRASE: "{{ DUPLICITY_PASSPHRASE}}"
|
||||
PASSPHRASE: "{{ duplicity_passphrase }}"
|
||||
# /usr/bin/duplicity uses "-s" python argument to prevent loading modules from user's python directory,
|
||||
# this variable will override that.
|
||||
PYTHONPATH: ".local/lib/python3.9/site-packages"
|
||||
|
@ -54,7 +54,7 @@
|
||||
SWIFT_REGIONNAME: "{{ SWIFT_REGIONNAME }}"
|
||||
SWIFT_TENANTNAME: "{{ OS_TENANT_NAME }}"
|
||||
SWIFT_AUTHVERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||
PASSPHRASE: "{{ DUPLICITY_PASSPHRASE}}"
|
||||
PASSPHRASE: "{{ duplicity_passphrase }}"
|
||||
# /usr/bin/duplicity uses "-s" python argument to prevent loading modules from user's python directory,
|
||||
# this variable will override that.
|
||||
PYTHONPATH: ".local/lib/python3.9/site-packages"
|
||||
|
@ -36,7 +36,7 @@
|
||||
SWIFT_REGIONNAME: "{{ SWIFT_REGIONNAME }}"
|
||||
SWIFT_TENANTNAME: "{{ OS_TENANT_NAME }}"
|
||||
SWIFT_AUTHVERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||
PASSPHRASE: "{{ DUPLICITY_PASSPHRASE}}"
|
||||
PASSPHRASE: "{{ duplicity_passphrase }}"
|
||||
# /usr/bin/duplicity uses "-s" python argument to prevent loading modules from user's python directory,
|
||||
# this variable will override that.
|
||||
PYTHONPATH: ".local/lib/python3.9/site-packages"
|
||||
|
@ -62,7 +62,7 @@
|
||||
SWIFT_REGIONNAME: "{{ SWIFT_REGIONNAME }}"
|
||||
SWIFT_TENANTNAME: "{{ OS_TENANT_NAME }}"
|
||||
SWIFT_AUTHVERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||
PASSPHRASE: "{{ DUPLICITY_PASSPHRASE}}"
|
||||
PASSPHRASE: "{{ duplicity_passphrase }}"
|
||||
# /usr/bin/duplicity uses "-s" python argument to prevent loading modules from user's python directory,
|
||||
# this variable will override that.
|
||||
PYTHONPATH: ".local/lib/python3.9/site-packages"
|
||||
|
@ -36,7 +36,7 @@
|
||||
SWIFT_REGIONNAME: "{{ SWIFT_REGIONNAME }}"
|
||||
SWIFT_TENANTNAME: "{{ OS_TENANT_NAME }}"
|
||||
SWIFT_AUTHVERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||
PASSPHRASE: "{{ DUPLICITY_PASSPHRASE}}"
|
||||
PASSPHRASE: "{{ duplicity_passphrase }}"
|
||||
# /usr/bin/duplicity uses "-s" python argument to prevent loading modules from user's python directory,
|
||||
# this variable will override that.
|
||||
PYTHONPATH: ".local/lib/python3.9/site-packages"
|
||||
|
@ -54,7 +54,7 @@
|
||||
SWIFT_REGIONNAME: "{{ SWIFT_REGIONNAME }}"
|
||||
SWIFT_TENANTNAME: "{{ OS_TENANT_NAME }}"
|
||||
SWIFT_AUTHVERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||
PASSPHRASE: "{{ DUPLICITY_PASSPHRASE}}"
|
||||
PASSPHRASE: "{{ duplicity_passphrase }}"
|
||||
# /usr/bin/duplicity uses "-s" python argument to prevent loading modules from user's python directory,
|
||||
# this variable will override that.
|
||||
PYTHONPATH: ".local/lib/python3.9/site-packages"
|
||||
|
@ -67,7 +67,7 @@
|
||||
SWIFT_REGIONNAME: "{{ SWIFT_REGIONNAME }}"
|
||||
SWIFT_TENANTNAME: "{{ OS_TENANT_NAME }}"
|
||||
SWIFT_AUTHVERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||
PASSPHRASE: "{{ DUPLICITY_PASSPHRASE}}"
|
||||
PASSPHRASE: "{{ duplicity_passphrase }}"
|
||||
# /usr/bin/duplicity uses "-s" python argument to prevent loading modules from user's python directory,
|
||||
# this variable will override that.
|
||||
PYTHONPATH: ".local/lib/python3.9/site-packages"
|
||||
|
@ -90,8 +90,6 @@
|
||||
dir: "{{ remote_workdir }}"
|
||||
- name: secrets/bootstrap/OVH_APPLICATION.yml
|
||||
dir: "{{ remote_workdir }}"
|
||||
- name: secrets/bootstrap/duplicity_passphrase
|
||||
dir: "{{ remote_workdir }}"
|
||||
environment:
|
||||
SECRETS_ARCHIVE_PASSPHRASE: "{{ lookup('env', 'SECRETS_ARCHIVE_PASSPHRASE') }}"
|
||||
|
||||
@ -128,7 +126,7 @@
|
||||
# SWIFT_REGIONNAME: "{{ SWIFT_REGIONNAME }}"
|
||||
# SWIFT_TENANTNAME: "{{ OS_TENANT_NAME }}"
|
||||
# SWIFT_AUTHVERSION: "{{ OS_IDENTITY_API_VERSION }}"
|
||||
# PASSPHRASE: "{{ DUPLICITY_PASSPHRASE}}"
|
||||
# PASSPHRASE: "{{ duplicity_passphrase }}"
|
||||
# # /usr/bin/duplicity uses "-s" python argument to prevent loading modules from user's python directory,
|
||||
# # this variable will override that.
|
||||
# PYTHONPATH: ".local/lib/python3.9/site-packages"
|
||||
|
Loading…
Reference in New Issue
Block a user