[test last]
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user