# Error in configuration

**URL:** <https://forum.ansible.com/t/error-in-configuration/33269>\
**Category:** Ansible Project\
**Created:** [June 27, 2020, 5:11am UTC](https://forum.ansible.com/t/error-in-configuration/33269 "2020-06-27T05:11:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashwini\_Jha](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@Ashwini\_Jha](https://forum.ansible.com/u/Ashwini_Jha)\
**Post date:** [June 27, 2020, 5:11am UTC](https://forum.ansible.com/t/error-in-configuration/33269/1 "2020-06-27T05:11:39Z")

</div>

Dear All,  
I am receiving this error when I tried to execute server.yml file. Anyone please suggest appropriate changes that i need to do in inventory file, host file or server.yml.  
I tried to execute this playbook against local-host.

administrator@JAVALAB01-43:~/nephele/ansible$ ansible-playbook -i inventory server.yml

PLAY [servers] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
**fatal: [localhost]: UNREACHABLE! =\> {“changed”: false, “msg”: “Failed to connect to the host via ssh: root@localhost: Permission denied (publickey,password).”, “unreachable”: true}**

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

localhost : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0

Regards,  
Ashwini Kumar Jha

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [June 27, 2020, 4:17pm UTC](https://forum.ansible.com/t/error-in-configuration/33269/2 "2020-06-27T16:17:42Z")

</div>

Hi

You have provided very little information. Please provide at least the playbook and your inventory.

---

<div class="post-metadata">

**Author:** ![Tej-Singh-Rana](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@Tej-Singh-Rana](https://forum.ansible.com/u/Tej-Singh-Rana)\
**Post date:** [June 27, 2020, 4:43pm UTC](https://forum.ansible.com/t/error-in-configuration/33269/3 "2020-06-27T16:43:54Z")

</div>

> May be password authentication is off in host machines or may be you haven’t provide keys in hostmachines.

You are Performing this in localhost so you have to pass ssh keys in it or make small changes in the ssh config file.

---

<div class="post-metadata">

**Author:** ![Will\_Brown](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@Will\_Brown](https://forum.ansible.com/u/Will_Brown)\
**Post date:** [June 28, 2020, 6:49pm UTC](https://forum.ansible.com/t/error-in-configuration/33269/4 "2020-06-28T18:49:51Z")

</div>

Yes, please provide additional details. At first look, the issue appears to be SSH related.  
Are you configuring Ansible user to SSH credential login with password ?

---

<div class="post-metadata">

**Author:** ![OM\_Nachiketa](https://avatars.discourse-cdn.com/v4/letter/o/3da27b/32.png) [@OM\_Nachiketa](https://forum.ansible.com/u/OM_Nachiketa)\
**Post date:** [June 29, 2020, 3:03am UTC](https://forum.ansible.com/t/error-in-configuration/33269/5 "2020-06-29T03:03:06Z")

</div>

1. Please check the manual ssh to any one host.
2. then try to use the ping module to see if it works. (ansible -i host -m ping --limit-host   
Mostly it will solve your problem. if not,
3. change the login user with -u and -k pass the password.

Please share logs if still not working.
