# User issue while pinging the hosts

**URL:** <https://forum.ansible.com/t/user-issue-while-pinging-the-hosts/33344>\
**Category:** Ansible Project\
**Created:** [July 8, 2020, 3:49am UTC](https://forum.ansible.com/t/user-issue-while-pinging-the-hosts/33344 "2020-07-08T03:49:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_N](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@Mahesh\_N](https://forum.ansible.com/u/Mahesh_N)\
**Post date:** [July 8, 2020, 3:49am UTC](https://forum.ansible.com/t/user-issue-while-pinging-the-hosts/33344/1 "2020-07-08T03:49:14Z")

</div>

Facing the below error while logging as my user (mahesh) and performing the actions on service user (service).

ERROR:  
fatal: [10.0.0.1]: UNREACHABLE! =\> {“changed”: false, “msg”: “Authentication failure.”, “unreachable”: true}

Tried:

- name: deploy elasticsearch  
hosts: all  
remote\_user: mahesh  
become: yes  
become\_user: service

---

<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:** [July 8, 2020, 5:23am UTC](https://forum.ansible.com/t/user-issue-while-pinging-the-hosts/33344/2 "2020-07-08T05:23:59Z")

</div>

Read these docs and make sure you understand them:

[https://docs.ansible.com/ansible/latest/user\_guide/connection\_details.html](https://docs.ansible.com/ansible/latest/user_guide/connection_details.html)

[https://docs.ansible.com/ansible/latest/user\_guide/become.html](https://docs.ansible.com/ansible/latest/user_guide/become.html)

---

<div class="post-metadata">

**Author:** ![Mahesh\_N](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@Mahesh\_N](https://forum.ansible.com/u/Mahesh_N)\
**Post date:** [July 8, 2020, 5:19pm UTC](https://forum.ansible.com/t/user-issue-while-pinging-the-hosts/33344/3 "2020-07-08T17:19:48Z")

</div>

Able to figure it out, there is no fault in site.yml, but in vars file i have added ansible\_user as my service user, so initially it’s SSH as service user, which shouldn’t be the case.
