[test last]

This commit is contained in:
2025-11-11 18:06:46 +01:00
parent a9a0408291
commit b059ab340a

View File

@@ -66,6 +66,10 @@
delegate_to: localhost
register: bw_session_result
- name: Return all secrets from a path
ansible.builtin.debug: "{{ bw_session_result.results[-1].stdout }}"
- name: Set BW_SESSION as environment variable globally
ansible.builtin.set_fact:
bw_session: "{{ bw_session_result.results[-1].stdout | trim }}"
@@ -74,9 +78,10 @@
- name: Utiliser le lookup
ansible.builtin.debug:
msg: "{{ lookup('community.general.bitwarden', 'Token full access gitea', field='password') }}"
msg: "{{ lookup('community.general.bitwarden', 'Token full access gitea', field='password', bw_session='{{ bw_session }}') }}"
environment:
BW_SESSION: "{{ bw_session }}"
delegate_to: localhost
- name: Return all secrets from a path
ansible.builtin.debug: "{{ bw_session }}"