diff --git a/backup.yml b/backup.yml index f2c94e8..8b622fa 100644 --- a/backup.yml +++ b/backup.yml @@ -79,6 +79,10 @@ delegate_to: localhost register: bw_session_result + - name: Return all secrets from a path + ansible.builtin.debug: "{{ bw_session_result }}" + delegate_to: localhost + - name: Get secret from Bitwarden command: argv: @@ -87,7 +91,7 @@ - password - "Token full access gitea" - --session - - "{{ bw_session }}" + - "{{ bw_session_result.results[-1].stdout | trim }}" delegate_to: localhost register: gitea_token_result no_log: true