#!/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