# ansible\_user Not being parsed

**URL:** <https://forum.ansible.com/t/ansible-user-not-being-parsed/19392>\
**Category:** Ansible Project\
**Created:** [September 30, 2015, 3:53pm UTC](https://forum.ansible.com/t/ansible-user-not-being-parsed/19392 "2015-09-30T15:53:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Ankit\_Sharma](https://forum.ansible.com/u/Ankit_Sharma)\
**Post date:** [September 30, 2015, 3:53pm UTC](https://forum.ansible.com/t/ansible-user-not-being-parsed/19392/1 "2015-09-30T15:53:09Z")

</div>

Hi,

I have the following /etc/ansible//hosts file  
[servers]  
1.1.1.1 ansible\_user=centos ansible\_ssh\_private\_key\_file=keys/1server.pem

when I issue the following command

ansible all -vvvv -m setup  
It tries to login as root

however the following works

ansible all -u centos -vvvv -m setup

where am I going wrong?

---

<div class="post-metadata">

**Author:** ![Ankit\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Ankit\_Sharma](https://forum.ansible.com/u/Ankit_Sharma)\
**Post date:** [September 30, 2015, 11:54pm UTC](https://forum.ansible.com/t/ansible-user-not-being-parsed/19392/2 "2015-09-30T23:54:08Z")

</div>

can anyone please respond

---

<div class="post-metadata">

**Author:** ![Ankit\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Ankit\_Sharma](https://forum.ansible.com/u/Ankit_Sharma)\
**Post date:** [October 1, 2015, 12:10am UTC](https://forum.ansible.com/t/ansible-user-not-being-parsed/19392/3 "2015-10-01T00:10:55Z")

</div>

I have fixed this on my own, the documentation on the website needs to be updated.  
I used ansible\_ssh\_user instead of ansible\_user

It worked like a charm!!
