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,230 points

1 answer to this question.

0 votes


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.

host_key_checking = False
answered Aug 10, 2020 by MD
• 95,440 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
0 votes
1 answer

How to write ansible playbook for storage health checking? Any references?

Why ansible in particular? You can use ...READ MORE

answered Oct 29, 2020 in Ansible by Lohith
0 votes
1 answer

How to make every machine password less SSH in Ansible?

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