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.
> [email protected] <mailto:[email protected]>
> 23 November 2017 at 00:25
> 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
>
> --
> 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 [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e78d6168-fdd5-46a4-a271-6e5c1b407369%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e78d6168-fdd5-46a4-a271-6e5c1b407369%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
--
[ Nigel Metheringham ------------------------------ [email protected] ]
[ Ellipsis Intangible Technologies ]
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5A16C7D5.5040000%40dotdot.it.
For more options, visit https://groups.google.com/d/optout.