# Change password of remote hosts

**URL:** <https://forum.ansible.com/t/change-password-of-remote-hosts/30372>\
**Category:** Ansible Project\
**Created:** [May 20, 2019, 4:13am UTC](https://forum.ansible.com/t/change-password-of-remote-hosts/30372 "2019-05-20T04:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Kwon](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@Kevin\_Kwon](https://forum.ansible.com/u/Kevin_Kwon)\
**Post date:** [May 20, 2019, 4:13am UTC](https://forum.ansible.com/t/change-password-of-remote-hosts/30372/1 "2019-05-20T04:13:33Z")

</div>

Hi…

Would you please let me know how can i change the account password?

1. How can i change the password of “root” account ?
2. How can i change the password of “user” account ?

Thank you!  
Kevin

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [May 20, 2019, 7:04am UTC](https://forum.ansible.com/t/change-password-of-remote-hosts/30372/2 "2019-05-20T07:04:45Z")

</div>

use the user module.

Jonathan Lozada De La Matta on mobile

– You received this message because you are subscribed to the Google Groups “Ansible Project” group. To unsubscribe from this group and stop receiving emails from it, send an email to . To post to this group, send email to . To view this discussion on the web visit . For more options, visit .

---

<div class="post-metadata">

**Author:** ![Kevin\_Kwon](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@Kevin\_Kwon](https://forum.ansible.com/u/Kevin_Kwon)\
**Post date:** [May 21, 2019, 9:22am UTC](https://forum.ansible.com/t/change-password-of-remote-hosts/30372/3 "2019-05-21T09:22:48Z")

</div>

Hi…

would you please share the sample playbook which it can change the password?

Thank you!  
Kevin

2019년 5월 20일 월요일 오후 1시 13분 33초 UTC+9, Kevin Kwon 님의 말:

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [May 21, 2019, 9:36am UTC](https://forum.ansible.com/t/change-password-of-remote-hosts/30372/4 "2019-05-21T09:36:19Z")

</div>

[https://docs.ansible.com/ansible/latest/modules/user\_module.html#examples](https://docs.ansible.com/ansible/latest/modules/user_module.html#examples)
