# Cannot create some accounts associated to a host inside an external inventory file

**URL:** <https://forum.ansible.com/t/cannot-create-some-accounts-associated-to-a-host-inside-an-external-inventory-file/32326>\
**Category:** Ansible Developer\
**Created:** [February 25, 2020, 10:23pm UTC](https://forum.ansible.com/t/cannot-create-some-accounts-associated-to-a-host-inside-an-external-inventory-file/32326 "2020-02-25T22:23:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano\_Leandro](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Stefano\_Leandro](https://forum.ansible.com/u/Stefano_Leandro)\
**Post date:** [February 25, 2020, 10:23pm UTC](https://forum.ansible.com/t/cannot-create-some-accounts-associated-to-a-host-inside-an-external-inventory-file/32326/1 "2020-02-25T22:23:39Z")

</div>

Hi ,

Pratically im implementing this use case :

Passing a inventory file containing host and vars associated ,i would create a play that iterate for each linux acciunt to create per host

this is my inventory file format :

hostname1 account\_name=‘john doe’ user\_name=‘jdoe’ group\_name=‘basic’  
hostname1 account\_name=‘robert key’ user\_name=‘rkey’ group\_name=‘basic’  
hostname1 account\_name=‘gin ice’ user\_name=‘gice’ group\_name=‘basic’

When i ran the playbook i can see only last row is executed.

Someone can suggest me how i have to write the playbook … i tried with\_items= “{{ user\_name }}” but the result is the same.

Thank you ,
