# Ansible user module, password option

**URL:** <https://forum.ansible.com/t/ansible-user-module-password-option/12840>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [May 22, 2013, 5:58am UTC](https://forum.ansible.com/t/ansible-user-module-password-option/12840 "2013-05-22T05:58:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilEv](https://avatars.discourse-cdn.com/v4/letter/p/ee59a6/32.png) [@PhilEv](https://forum.ansible.com/u/PhilEv)\
**Post date:** [May 22, 2013, 5:58am UTC](https://forum.ansible.com/t/ansible-user-module-password-option/12840/1 "2013-05-22T05:58:38Z")

</div>

it is the encrypted form like with useradd(8)

More than one way to do it, depends on the hashing algo being used/set-up on the target system and salt being used or not

one way is to use openssl passwd

one is to copy the encrypted string from a shadow file

reading the follwing can help:

[http://serverfault.com/questions/330069/how-to-create-an-sha-512-hashed-password-for-shadow](http://serverfault.com/questions/330069/how-to-create-an-sha-512-hashed-password-for-shadow)

Phil.
