install the sshpass program

I am trying to run my ansible playbook and get the below error

FAILED! => {“failed”: true, “msg”: “to use the ’
ssh’ connection type with passwords, you must install the sshpass program”}

my server from where i am running this has

openssh-askpass-1.2.4.1-7.5.x86_64

and the remote server also has that.

Is it possible to make ansible use this instead?

sshpass is not the same thing as openssh-askpass. It’s possible that sshpass may not be available in the stock OS repos for your OS. In such a case, you will need to search for another repo for your OS which includes it, or download and install sshpass via source:

https://sourceforge.net/projects/sshpass/

For RHEL/CentOS 6.x and 7.x sshpass is in EPEL repository

Regards,

JYL

askpass is a gui program for prompting for passwords, sshpass is a
program that takes care of passwords prompts w/o interactive user
input.