# Don't create user if it doesn't exist

**URL:** <https://forum.ansible.com/t/dont-create-user-if-it-doesnt-exist/27087>\
**Category:** AWX Project\
**Tags:** awx-project, awx\
**Created:** [March 23, 2018, 3:37am UTC](https://forum.ansible.com/t/dont-create-user-if-it-doesnt-exist/27087 "2018-03-23T03:37:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Church](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Chris\_Church](https://forum.ansible.com/u/Chris_Church)\
**Post date:** [March 23, 2018, 3:37am UTC](https://forum.ansible.com/t/dont-create-user-if-it-doesnt-exist/27087/1 "2018-03-23T03:37:29Z")

</div>

This seems like a question pertaining to Ansible itself, rather than AWX. The ansible-project list may be a better place for this type of question.

However, you may be able to use the shell module to run something like “getent passwd | cut -d: -f1” to retrieve a list of usernames on the remote system, and only invoke the user module for usernames found in that list.
