Fix idempotency.

This commit is contained in:
yohan 2024-06-20 13:32:31 +02:00
parent 6827be9fda
commit d314dc3533
10 changed files with 9 additions and 27 deletions

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"