You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-homelab/.vault-pass.sh

5 lines
241 B
Bash

#!/bin/bash
# fetch vault password from bitwarden. We assume there is an item called "homelab-vault" that contains the password
password="$(bw list items | jq -r 'map(select(.name == "homelab-vault"))[0].login.password')"
echo "${password}"