Fix #25: Use correct lookup name (#26)
Infrastructure / Check and run Ansbile playbooks (push) Successful in 2m11s Details

Fixes #25

Reviewed-on: #26
This commit is contained in:
Gleb Koval 2024-01-04 13:13:31 +00:00
parent 8529d56c44
commit 773b73f579
1 changed files with 2 additions and 2 deletions

View File

@ -25,12 +25,12 @@
ansible.builtin.replace:
path: "{{ user.home }}/{{ app }}/.env"
regexp: "TYPESENSE_API_KEY_VALUE"
replace: "{{ lookup('infisical_vault', 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') }}"
- name: Replace DB secret
ansible.builtin.replace:
path: "{{ user.home }}/{{ app }}/.env"
regexp: "DB_PASSWORD_VALUE"
replace: "{{ lookup('infisical_vault', env_slug='prod', path='/photos', secret_name='DB_PASSWORD') }}"
replace: "{{ lookup('infisical.vault.read_secrets', env_slug='prod', path='/photos', secret_name='DB_PASSWORD') }}"
- name: Docker compose up -d
ansible.builtin.command: docker compose up -d
args: