From 8c477a7ac0f706ce70427d5c53bcf9cc7fd193a1 Mon Sep 17 00:00:00 2001 From: spektr Date: Mon, 30 Nov 2026 02:57:06 +0100 Subject: [PATCH] =?UTF-8?q?GNAI-025:=20compose-Adaption=20um=204=20verscha?= =?UTF-8?q?chtelte=20${VAR:-${INNER:-=E2=80=A6}}-Refs=20geflattet=20(podma?= =?UTF-8?q?n-compose=201.3.0=20zerpfl=C3=BCckt=20nested=20defaults)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .../ansible/roles/fluxer_stack/tasks/main.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/tasks/main.yml b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/tasks/main.yml index 2f91201..d50a7a3 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/tasks/main.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/tasks/main.yml @@ -61,8 +61,22 @@ # volume the api self-heals via restart: unless-stopped while init runs. ansible.builtin.replace: path: "{{ fluxer_stack_compose_file }}" - replace: "seaweedfs-init: {condition: service_started}" - regexp: 'seaweedfs-init: \{condition: service_completed_successfully\}' + replace: "{{ item.replace }}" + regexp: "{{ item.regexp }}" + loop: + # 1. completed_successfully is never satisfied by podman-compose 1.3.0 + - regexp: 'seaweedfs-init: \{condition: service_completed_successfully\}' + replace: 'seaweedfs-init: {condition: service_started}' + # 2. nested ${VAR:-${INNER:-default}} refs get mangled (leftover "}:" in + # the container env); flatten so our explicit .env values pass through + - regexp: '\$\{FLUXER_REGISTRY:-ghcr\.io/\$\{FLUXER_REGISTRY_OWNER:-fluxerapp\}\}' + replace: '${FLUXER_REGISTRY}' + - regexp: '\$\{FLUXER_VAPID_EMAIL:-admin@\$\{FLUXER_DOMAIN\}\}' + replace: '${FLUXER_VAPID_EMAIL}' + - regexp: '\$\{FLUXER_PASSKEY_RP_ID:-\$\{FLUXER_DOMAIN\}\}' + replace: '${FLUXER_PASSKEY_RP_ID}' + - regexp: '\$\{FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS:-\$\{FLUXER_PUBLIC_SCHEME:-https\}://\$\{FLUXER_DOMAIN\}\}' + replace: '${FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS}' when: not ansible_check_mode notify: - Restart the Fluxer stack