# Some user of ansible\_user

**URL:** <https://forum.ansible.com/t/some-user-of-ansible-user/31084>\
**Category:** Ansible Project\
**Created:** [August 21, 2019, 8:44am UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31084 "2019-08-21T08:44:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Anthony\_Garcia](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@Mark\_Anthony\_Garcia](https://forum.ansible.com/u/Mark_Anthony_Garcia)\
**Post date:** [August 21, 2019, 8:44am UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31084/1 "2019-08-21T08:44:47Z")

</div>

For me I use the local users from the ansible controllers by calling the “{{ lookup(‘env’,‘USER’) }}”.

---

<div class="post-metadata">

**Author:** ![Karther](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@Karther](https://forum.ansible.com/u/Karther)\
**Post date:** [August 21, 2019, 11:35am UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31084/2 "2019-08-21T11:35:53Z")

</div>

Hey Mark,

Ok for this issue, but my user of my environnement is different of my ansible\_user of my inventory\_hostname.

I have **my inventory host** with this content :

my\_host\_1 ansible\_user=wildfly  
my\_host\_1 ansible\_user=toto

Ansible is my user of my environnement …

Thanks for your help community ansible !! 🙂

Regards,

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [August 21, 2019, 11:42am UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31084/3 "2019-08-21T11:42:53Z")

</div>

> Hey Mark,
> 
> Ok for this issue, but my user of my environnement is different of my ansible\_user of my inventory\_hostname.
> 
> I have \*my inventory host\* with this content :
> 
> my\_host\_1 ansible\_user=wildfly  
> my\_host\_1 ansible\_user=toto
> 
> Ansible is my user of my environnement ....
> 
> Thanks for your help community ansible !! 🙂

At any rate you can't use the same host name twice in your inventory file.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
