12 lines
391 B
Markdown
12 lines
391 B
Markdown
---
|
|
title: Ansible, sudo, Bitwarden
|
|
date: 2019-08-20T06:54:00-06:00
|
|
---
|
|
|
|
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 …
|