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 9, 2020 in Ansible by akhtar
• 38,210 points
417 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 9, 2020 by MD
• 95,300 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
13,293 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
185 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,255 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,300 points
660 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,300 points
851 views