This commit is contained in:
Matt Reeves 2024-12-31 22:53:47 -05:00
parent 3e4c79613e
commit 3e7f6edf7b

View file

@ -22,17 +22,9 @@
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('bitwarden.secrets.lookup', secret_id, access_token=bw_access_token) }} {{ key }}={{ lookup('bitwarden.secrets.lookup', secret_id, access_token=bw_access_token) }}
{% endfor %} {% endfor %}
- name: Verify .env file content
ansible.builtin.shell: cat "{{ repo_path }}/.env"
register: env_file_content
- name: Display .env content
ansible.builtin.debug:
var: env_file_content.stdout_lines
- name: Ensure the repository is up-to-date - name: Ensure the repository is up-to-date
ansible.builtin.shell: git pull ansible.builtin.shell: git pull
args: args: