# Changing default for update\_password

**URL:** <https://forum.ansible.com/t/changing-default-for-update-password/18735>\
**Category:** Ansible Developer\
**Created:** [July 11, 2015, 9:31pm UTC](https://forum.ansible.com/t/changing-default-for-update-password/18735 "2015-07-11T21:31:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hvjunk](https://avatars.discourse-cdn.com/v4/letter/h/e274bd/32.png) [@hvjunk](https://forum.ansible.com/u/hvjunk)\
**Post date:** [July 11, 2015, 9:31pm UTC](https://forum.ansible.com/t/changing-default-for-update-password/18735/1 "2015-07-11T21:31:35Z")

</div>

Goodday,

Googling just gives me the page on the User module, but my need is to set the update\_password=on\_create as the default for users, as they change their passwords, but we keep the users.yml to help update keys etc. for them, though we have a “Default” initial password on creation.

How and where do I set this update\_password=on\_create as to not include it on each and every user’s stanza?

Hendrik

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 19, 2015, 2:54am UTC](https://forum.ansible.com/t/changing-default-for-update-password/18735/2 "2015-07-19T02:54:37Z")

</div>

you could do something like:

update\_password="{{item.udpate|default('on\_create')}}"
