# Some user of ansible\_user

**URL:** <https://forum.ansible.com/t/some-user-of-ansible-user/31088>\
**Category:** Ansible Project\
**Created:** [August 21, 2019, 12:14pm UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31088 "2019-08-21T12:14:57Z")\
**Posts on this page:** 4\
**Page:** 1

<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, 12:14pm UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31088/1 "2019-08-21T12:14:57Z")

</div>

Hey all !!

Ok thanks very much community ansible for your help !! 🙂

It’s very pity that ansible not can play the same playbook on the same host with different user …

Thanks very much for your help !! 🙂

Regards,

Karther

---

<div class="post-metadata">

**Author:** ![Stephen\_Maher](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Stephen\_Maher](https://forum.ansible.com/u/Stephen_Maher)\
**Post date:** [August 21, 2019, 12:44pm UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31088/2 "2019-08-21T12:44:22Z")

</div>

Hi

Is this what you are looking for??

---

<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, 12:57pm UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31088/3 "2019-08-21T12:57:28Z")

</div>

> Hey all !!
> 
> Ok thanks very much community ansible for your help !! 🙂
> 
> It's very pity that ansible not can play the same playbook on the same host with different user ...
> 
> Thanks very much for your help !! 🙂
> 
> Regards,
> 
> Karther

I didn't say that, but in the inventory you can't use the hostname twice. You can cheat with  
two different "fake" host names and ip address in the inventory line, but a better solution  
would be to loop the tasks over the users. For example you can use a custom variable containing  
both user names and loop over them in the tasks.

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

---

<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, 3:38pm UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31088/4 "2019-08-21T15:38:17Z")

</div>

Hey,

How do that please ???

I am amateur for ansible

Thanks,

Regards,
