# Don't create user when updating passwords

**URL:** <https://forum.ansible.com/t/dont-create-user-when-updating-passwords/27078>\
**Category:** Ansible Project\
**Created:** [March 22, 2018, 12:10pm UTC](https://forum.ansible.com/t/dont-create-user-when-updating-passwords/27078 "2018-03-22T12:10:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkempster22uu](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mkempster22uu](https://forum.ansible.com/u/mkempster22uu)\
**Post date:** [March 22, 2018, 12:10pm UTC](https://forum.ansible.com/t/dont-create-user-when-updating-passwords/27078/1 "2018-03-22T12:10:42Z")

</div>

Is there a way in the user module to not create a user if it doesn’t find it. This is so we can update the password for that user on a list of servers, but if the server doesn’t have the user it will just skip it rather than create a new user

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 22, 2018, 1:26pm UTC](https://forum.ansible.com/t/dont-create-user-when-updating-passwords/27078/2 "2018-03-22T13:26:05Z")

</div>

Use the getent module to get user list, make the user task conditional on that.
