mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-12-16 19:27:37 +00:00
Update roles/vaultwarden/tasks/main.yml
This commit is contained in:
@ -72,6 +72,12 @@
|
|||||||
environment:
|
environment:
|
||||||
BW_PASSWORD: "{{ BW_PASSWORD }}"
|
BW_PASSWORD: "{{ BW_PASSWORD }}"
|
||||||
|
|
||||||
|
- name: 2 Desbloquear cofre e guardar sessão
|
||||||
|
shell: bw unlock {{ bw_password }} --raw
|
||||||
|
register: bw_session
|
||||||
|
environment:
|
||||||
|
BW_PASSWORD: "{{ BW_PASSWORD }}"
|
||||||
|
|
||||||
- name: Exportar sessão para ambiente local
|
- name: Exportar sessão para ambiente local
|
||||||
shell: echo "export BW_SESSION={{ bw_session.stdout }}" >> /etc/profile.d/bw-session.sh
|
shell: echo "export BW_SESSION={{ bw_session.stdout }}" >> /etc/profile.d/bw-session.sh
|
||||||
become: true
|
become: true
|
||||||
Reference in New Issue
Block a user