# better way to manage users on unix machine

**URL:** <https://forum.ansible.com/t/better-way-to-manage-users-on-unix-machine/24980>\
**Category:** Ansible Project\
**Created:** [July 14, 2017, 7:01am UTC](https://forum.ansible.com/t/better-way-to-manage-users-on-unix-machine/24980 "2017-07-14T07:01:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suresh\_Prajapati](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Suresh\_Prajapati](https://forum.ansible.com/u/Suresh_Prajapati)\
**Post date:** [July 14, 2017, 7:01am UTC](https://forum.ansible.com/t/better-way-to-manage-users-on-unix-machine/24980/1 "2017-07-14T07:01:35Z")

</div>

Hi Guys,

I am using a list of users to define the exact set of user accounts I need on all of my managed compute instances.

For example:

---

<div class="post-metadata">

**Author:** ![Listing](https://avatars.discourse-cdn.com/v4/letter/l/3d9bf3/32.png) [@Listing](https://forum.ansible.com/u/Listing)\
**Post date:** [July 14, 2017, 9:08am UTC](https://forum.ansible.com/t/better-way-to-manage-users-on-unix-machine/24980/2 "2017-07-14T09:08:03Z")

</div>

Can you show me the playbook you are using?

---

<div class="post-metadata">

**Author:** ![Suresh\_Prajapati](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Suresh\_Prajapati](https://forum.ansible.com/u/Suresh_Prajapati)\
**Post date:** [July 14, 2017, 9:30am UTC](https://forum.ansible.com/t/better-way-to-manage-users-on-unix-machine/24980/3 "2017-07-14T09:30:03Z")

</div>

Thanks for the reply.

Here is the adduser task

[https://gist.github.com/toddlers/cc2647a493be431964114b22a2eb01e8](https://gist.github.com/toddlers/cc2647a493be431964114b22a2eb01e8)
