Hi@akhtar,
You need to use the hash to create a password for a user. Otherwise, your system will not allow you to log in to your system. And for the same reason, you are getting the above warning. You can use the below script to use the hash.
- hosts: all
vars:
password: password
tasks:
- name: Create a User.
user:
name: user1
state: present
password: "{{ password | password_hash('sha512') }}"