Files
lilleback-infra/helpers/get-passwords.sh
2024-12-28 12:04:44 +01:00

14 lines
427 B
Bash
Executable File

#!/bin/bash
if ! [[ -d "./.passwords" ]]
then
mkdir "./.passwords"
echo "Created passwords directory"
fi
bw get password "ansible vault encryption" > ./.passwords/vault
echo "Fetched vault password"
bw get password "linux user ansible@bigboi" > ./.passwords/become
echo "Fetched ansible user password"
bw get password "linux user wholteza@bigboi" > ./.passwords/bootstrap_become
echo "Fetched bootstrap user password"