#!/bin/bash pass=`secret-tool lookup ansible_vault vpn` retval=$? if [ $retval -ne 0 ]; then read -s pass fi echo $pass