One minute
Ansible, sudo, Bitwarden
The latest version of sshpass
supports a --prompt
/-P
argument, which
controls the string the tool expects, after which it will send the specified
password. Using this, it is possible to send a password from Bitwarden to
Ansible, like so:
sshpass -f <(bwpass …) -P ‘SUDO password:’ ansible-playbook -bK …
49 Words
2019-08-20 12:54 +0000