# Chaning user's own password after validating the current password

**URL:** <https://forum.ansible.com/t/chaning-users-own-password-after-validating-the-current-password/25035>\
**Category:** Ansible Project\
**Created:** [July 20, 2017, 6:14pm UTC](https://forum.ansible.com/t/chaning-users-own-password-after-validating-the-current-password/25035 "2017-07-20T18:14:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![islhamid](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@islhamid](https://forum.ansible.com/u/islhamid)\
**Post date:** [July 20, 2017, 6:14pm UTC](https://forum.ansible.com/t/chaning-users-own-password-after-validating-the-current-password/25035/1 "2017-07-20T18:14:44Z")

</div>

Hi

I am looking for a playbook that will change user’s password only if the playbook is ran by the user.  
In other words can you help in writing a playbook that will first verify user’s current password then if the current password is correct then let the user to change his existing password.

Appreciate your input on this.

Thanks
