SSH encountered an unknown error during the connection - Ansible Error

0 votes

I'm running ad hoc ansible tasks instead of adding them in a playbook, but I get this error:

default | FAILED => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

What is the issue?

Feb 9, 2019 in Ansible by Nisha

1 answer to this question.

0 votes

I think you have not configured your ssh yet. You can do it by executing the following command:

ansible all -i vagrant_ansible_inventory_default -u vagrant --private-key ~/.vagrant.d/insecure_private_key -m ping
answered Feb 9, 2019 by Monish

Related Questions In Ansible

0 votes
1 answer
+1 vote
3 answers
0 votes
1 answer

Make Ansible throw an error inside the role

Hey @Nisha, you can use the block/rescue ...READ MORE

answered Mar 13, 2019 in Ansible by Kim
0 votes
1 answer
+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
+2 votes
1 answer