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 in Ansible by akhtar
• 25,030 points
54 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 by MD
• 56,480 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
9,184 views
0 votes
1 answer
+1 vote
3 answers
0 votes
1 answer

How to regex replace nested values in Ansible

I'm not aware of any built-in method ...READ MORE

answered Jun 16, 2018 in Ansible by shubham
• 6,910 points
2,224 views
+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
677 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 5 days ago in Ansible by MD
• 56,480 points
14 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 in Ansible by MD
• 56,480 points
224 views