Change user password — Ansible module user

How to write an Ansible Playbook to assign the password “password” to an “example” user account in a Linux system with SHA512 encryption.

How to change a user password with Ansible?

I’m going to show you a live demo with some simple Ansible code.