FAILED msg to use the ssh connection type with passwords you must install the sshpass program

0 votes

Hi Guys,

I am trying to run ansible commands in my Managed nodes. But it is showing me the below error.

[root@localhost ~]# ansible all -m package -a "name=firefox state=present"
192.168.0.179 | FAILED! => {
    "msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"

How can I solve this error?

Jul 28, 2020 in Ansible by akhtar
• 38,260 points
11,581 views

1 answer to this question.

0 votes

Hi@akhtar,

Ansible needs extra software to run commands in the managed nodes. One of the software is sshpass. You can download this software using the below-given command.

$ yum install sshpass

I hope this will solve your error.

answered Jul 28, 2020 by MD
• 95,460 points

Related Questions In Ansible

0 votes
1 answer
+1 vote
3 answers
+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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP