Error : sshpass is needed by ansible
Error : sshpass is needed by ansible
Got the above error while installing Ansible on Fedora server. Do the below steps to install the sshpass dependency on Fedora server.
1. Log into your Fedora server as ‘root’ user or sudo user
2. Install the missing dependencies using ‘dnf’command
dnf install sshpass
OR
sudo dnf install sshpass
3. Enter ‘y’ and hit enter if installation ask for confirmation.
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
sshpass x86_64 1.06-8.fc31 fedora 26 k
Transaction Summary
===================================================================================================
Install 1 Package
Total download size: 26 k
Installed size: 43 k
Is this ok [y/N]: y
How to download and install sshpass rpm
1. Log into Fedora31 x86_64 server as root user
2. Download sshpass package using wget command
You can download sshpass rpm file from fedoraproject.org website.
wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/31/Everything/x86_64/os/Packages/s/sshpass-1.06-8.fc31.x86_64.rpm
3. Install sshpass using rpm command or dnf command
rpm -ivh sshpass-1.06-8.fc31.x86_64.rpm
Verifying… ################################# [100%]
Preparing… ################################# [100%]
Updating / installing…
1:sshpass-1.06-8.fc31 ################################# [100%]
You must manually install the dependencies, if you are installing sshpass package using rpm command.
sshpass package need glibc dependency.
Command to install sshpass using dnf command :