Ansible DRY fixes for Vault lookups.
Gitea Branch PR & Ansible Deployment / Check and Create PR (push) Failing after 3m6s
Gitea Branch PR & Ansible Deployment / Docker Compose & Ansible Lints (push) Has been skipped
Gitea Branch PR & Ansible Deployment / PR Merge (push) Failing after 9m4s
Gitea Branch PR & Ansible Deployment / Ansible Configs & Docker Compose Deployment (push) Has been skipped

This commit is contained in:
2025-05-20 09:06:49 -04:00
parent c804bb6dab
commit 6b37ad8ea4
37 changed files with 118 additions and 112 deletions
+4 -4
View File
@@ -16,7 +16,7 @@ db:
host: invidious-db
port: 5432
dbname: invidious
password: {{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token_cleaned)['secret']['INVID_PG_DB_PASSWORD'] }}
password: {{ vault_secrets['INVID_PG_DB_PASSWORD'] }}
##
## Database configuration using a single URI. This is an
@@ -210,8 +210,8 @@ https_only: false
## Accepted values: String
## Default: <none>
##
po_token: {{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token_cleaned)['secret']['INVID_PO_TOKEN'] }}
visitor_data: {{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token_cleaned)['secret']['INVID_VISITOR_DATA'] }}
po_token: {{ vault_secrets['INVID_PO_TOKEN'] }}
visitor_data: {{ vault_secrets['INVID_VISITOR_DATA'] }}
# -----------------------------
# Logging
@@ -471,7 +471,7 @@ jobs:
## Accepted values: a string
## Default: <none>
##
hmac_key: {{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token_cleaned)['secret']['INVID_HMAC_KEY'] }}
hmac_key: {{ vault_secrets['INVID_HMAC_KEY'] }}
##
## List of video IDs where the "download" widget must be