How to ignore ansible SSH authenticity checking

0 votes

Hi Guys,

I am new in Ansible. Whenever I try to run any playbook in my remote system it is failing because of SSH authentication. Can anyone tell me how can I avoid this?

Aug 10, 2020 in Ansible by akhtar
• 38,240 points
1,954 views

1 answer to this question.

0 votes

Hi@akhtar,

To avoid this you need to set an environment variable host_key_checking to False in ansible.cfg file. To do that, make an ansible.cfg file inside /etc folder and include these below lines.

[defaults]
host_key_checking = False
answered Aug 10, 2020 by MD
• 95,460 points

Related Questions In Ansible

0 votes
1 answer

How to ignore failed commands in Ansible?

Usually, if even one command fails to ...READ MORE

answered Feb 7, 2019 in Ansible by Patt
14,875 views
0 votes
1 answer
0 votes
1 answer

How to make every machine password less SSH in Ansible?

Do have access to all 1000 machines? ...READ MORE

answered Oct 30, 2020 in Ansible by Anil
839 views
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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
2,555 views
+2 votes
1 answer
0 votes
1 answer

How to do SSH in EC2 instance using Ansible Playbook?

Hi@akhtar, To configure your inventory dynamically you need ...READ MORE

answered Sep 21, 2020 in Ansible by MD
• 95,460 points
1,652 views
+1 vote
1 answer

How to deploy war file into the Websphere using ansible playbook

Hi@M, You can use the below-given example. - name: ...READ MORE

answered Jun 29, 2020 in Ansible by MD
• 95,460 points
1,531 views
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