Hi
I am executing playbook for changing password but its password not working after changing it,
Playbook as follows
- hosts: all
tasks:
- name: Change root password
user: name=test update_password=always password=“test123”
Please help in resolve
Regards
Saravana
The password entry for the user module is a crypted password, not a clear text one.
That will, on a relatively modern system, look something like
$6$saltchars$passchars
for example:-
$6$0JvQ1LLFESzA16.I$JVdKAIq0igudTq06BMqzT9rL1gRawMPwLr9U3/kBMKUqZdONfa0wubC89C35LKl3aE16CRH57BfGb4ygPLggL1
[Yes they really are that long]
See https://unix.stackexchange.com/questions/52108/how-to-create-sha512-password-hashes-on-command-line for some info on how to get crypted passwords.
Nigel.
HI
Thanks for the update.
i have one more query how to do ansible without copying the keys to remote host.
Regards
Saravana