From 31d3d87f81f8df6137e52e39062231d15be6c104 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Thu, 4 Jan 2024 16:02:03 +0000 Subject: [PATCH] Get value from infisical result --- infra/photos/0003_immich_playbook.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/photos/0003_immich_playbook.yaml b/infra/photos/0003_immich_playbook.yaml index f6465cb..6335431 100644 --- a/infra/photos/0003_immich_playbook.yaml +++ b/infra/photos/0003_immich_playbook.yaml @@ -25,12 +25,12 @@ ansible.builtin.replace: path: "{{ user.home }}/{{ app }}/.env" regexp: "TYPESENSE_API_KEY_VALUE" - replace: "{{ lookup('infisical.vault.read_secrets', env_slug='prod', path='/photos', secret_name='TYPESENSE_API_KEY') }}" + replace: "{{ lookup('infisical.vault.read_secrets', env_slug='prod', path='/photos', secret_name='TYPESENSE_API_KEY')['value'] }}" - name: Replace DB secret ansible.builtin.replace: path: "{{ user.home }}/{{ app }}/.env" regexp: "DB_PASSWORD_VALUE" - replace: "{{ lookup('infisical.vault.read_secrets', env_slug='prod', path='/photos', secret_name='DB_PASSWORD') }}" + replace: "{{ lookup('infisical.vault.read_secrets', env_slug='prod', path='/photos', secret_name='DB_PASSWORD')['value'] }}" - name: Docker compose up -d ansible.builtin.command: docker compose up -d args: -- 2.40.1