# not able to change password for user in remote host

**URL:** <https://forum.ansible.com/t/not-able-to-change-password-for-user-in-remote-host/24666>\
**Category:** Ansible Project\
**Created:** [June 7, 2017, 5:04am UTC](https://forum.ansible.com/t/not-able-to-change-password-for-user-in-remote-host/24666 "2017-06-07T05:04:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atindra\_Sarma](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Atindra\_Sarma](https://forum.ansible.com/u/Atindra_Sarma)\
**Post date:** [June 7, 2017, 5:04am UTC](https://forum.ansible.com/t/not-able-to-change-password-for-user-in-remote-host/24666/1 "2017-06-07T05:04:45Z")

</div>

please see the below playbook . i am trying to chage password for a user in remote host but getting the message FAILED! =\> {“changed”: false, “failed”: true, “msg”: “useradd: invalid user name ‘’\n”, “name”: “”, “rc”: 3}

`

---

<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:** [June 7, 2017, 8:26pm UTC](https://forum.ansible.com/t/not-able-to-change-password-for-user-in-remote-host/24666/2 "2017-06-07T20:26:37Z")

</div>

Don't leave spaces in k=v options:

name={{user\_name}} password={{new\_password}}
