fallback when secret service is not available
This commit is contained in:
parent
c5f03b7b29
commit
d2a96c7f7b
3 changed files with 11 additions and 3 deletions
|
@ -14,6 +14,8 @@ My current setup is [Linux Mint Vera](https://linuxmint.com/edition.php?id=302)
|
|||
- thunderbird config
|
||||
- i3 app shortcuts
|
||||
- firefox config? extensions? host own synchronizer?
|
||||
- i3 stutters
|
||||
- disable system reports
|
||||
|
||||
#### Neovim
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ roles_path=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:roles
|
|||
inventory=inventory
|
||||
playbook_dir=playbooks
|
||||
vault_password_file=util/secret-service-client.sh
|
||||
interpreter_python=/usr/bin/python3
|
||||
|
||||
[privilege_escalation]
|
||||
become_ask_pass=true
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
secret-tool lookup ansible_vault homeservers
|
||||
pass=`secret-tool lookup ansible_vault homeservers`
|
||||
retval=$?
|
||||
|
||||
if [ $retval -ne 0 ]; then
|
||||
echo Provide password:
|
||||
read -s pass
|
||||
fi
|
||||
echo $pass
|
||||
|
|
Reference in a new issue