11 lines
154 B
Bash
11 lines
154 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
pass=`secret-tool lookup ansible_vault dataserver`
|
||
|
retval=$?
|
||
|
|
||
|
if [ $retval -ne 0 ]; then
|
||
|
echo Provide password:
|
||
|
read -s pass
|
||
|
fi
|
||
|
echo $pass
|