This commit is contained in:
Matt Reeves 2024-12-31 22:34:27 -05:00
parent bc6f9bfb8e
commit 9d0cfd34ab

View file

@ -22,7 +22,7 @@
dest: "{{ repo_path }}/.env" dest: "{{ repo_path }}/.env"
content: | content: |
{% for key, secret_id in env_variables.items() %} {% for key, secret_id in env_variables.items() %}
{{ key }}={{ lookup('community.general.bws', secret_id, base_url='https://vault.bitwarden.com', access_token=lookup('env', 'BW_ACCESS_TOKEN')) }} {{ key }}={{ lookup('bitwarden.secrets.lookup', secret_id) }}
{% endfor %} {% endfor %}
- name: Verify .env file content - name: Verify .env file content