# how to specify a user name in an ansible host entry

**URL:** <https://forum.ansible.com/t/how-to-specify-a-user-name-in-an-ansible-host-entry/12687>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [April 16, 2013, 5:28pm UTC](https://forum.ansible.com/t/how-to-specify-a-user-name-in-an-ansible-host-entry/12687 "2013-04-16T17:28:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CWS](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@CWS](https://forum.ansible.com/u/CWS)\
**Post date:** [April 16, 2013, 5:28pm UTC](https://forum.ansible.com/t/how-to-specify-a-user-name-in-an-ansible-host-entry/12687/1 "2013-04-16T17:28:39Z")

</div>

Host or group vars: [http://ansible.cc/docs/patterns.html#splitting-out-host-and-group-specific-data](http://ansible.cc/docs/patterns.html#splitting-out-host-and-group-specific-data)

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [April 17, 2013, 12:30am UTC](https://forum.ansible.com/t/how-to-specify-a-user-name-in-an-ansible-host-entry/12687/2 "2013-04-17T00:30:27Z")

</div>

You have weird HTML in this post, BTW 🙂

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [April 17, 2013, 12:31am UTC](https://forum.ansible.com/t/how-to-specify-a-user-name-in-an-ansible-host-entry/12687/3 "2013-04-17T00:31:57Z")

</div>

Yes, what Serge said!

ansible\_ssh\_user is the variable to set per host.
