No match for argument sshpass Error Unable to find a match

0 votes

Hi Guys,

I am trying to run ansible commands in my managed nodes. But it is showing that it needs sshpass software. I tried to install sshpass software in my system. But I got the below error message.

[root@localhost ~]# yum install sshpass
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use su                                                                                        bscription-manager to register.
Repository 'docker' is missing name in configuration, using id.
Repository 'App' is missing name in configuration, using id.
Repository 'Base' is missing name in configuration, using id.
docker                                                                                                                                  2.2 kB/s | 3.5 kB     00:01
Jenkins                                                                                                                                 1.1 kB/s | 2.9 kB     00:02
App                                                                                                                                     2.8 MB/s | 3.2 kB     00:00
Base                                                                                                                                    2.7 MB/s | 2.7 kB     00:00
No match for argument: sshpass
Error: Unable to find a match

Jul 28, 2020 in Ansible by akhtar
• 38,180 points
1,461 views

1 answer to this question.

0 votes

Hi@akhtar,

The sshpass software is not part of the RedHat DVD. You need to download an extra package for this. This software is a part of the epel-release package. You can follow the below-given steps to install this software.

  • Download epel-release rpm in your system.

 wget  https://dl.fedoraproject.org/pub/epel/epel-release-lat

  • Install this rpm in your system.

$ rpm -ivh epel-release-latest-8.noarch.rpm
  • Now install sshpass software in your system. 

$ yum install sshpass
answered Jul 28, 2020 by MD
• 95,240 points

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

unable to build grails war on a vagrant machine using ansible

Try and run the command using shell ...READ MORE

answered Jul 2, 2018 in Ansible by ajs3033
• 7,280 points
287 views
0 votes
1 answer

Error saying "Failed to find required executable npm in paths"

Hey @Thomas,  Seems like those extra paths have ...READ MORE

answered Jan 10, 2019 in Ansible by Naina
1,181 views
0 votes
1 answer

How do I configure a jump host to access servers that I have no direct access to?

You can set a ProxyCommand in the ansible_ssh_common_args inventory variable. Any ...READ MORE

answered Jan 30, 2019 in Ansible by Mahir
1,645 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,192 views
+2 votes
1 answer
0 votes
1 answer

No match for argument: ansible Error: Unable to find a match

Hi@akhtar, Ansible is not part of your RedHat ...READ MORE

answered Jul 27, 2020 in Ansible by MD
• 95,240 points
4,408 views