ansible/roles/random_root_password/files/root-password-print.sh

9 lines
230 B

#!/bin/bash
# For printing the passwords to save to a password manager
password_dir=~/ansible/secrets/passwords/
for dir in $(ls $password_dir); do
printf "%-17s : %20s\n" "$dir" "$(cat $password_dir/$dir/root_password)"
done