I believe that's because the password_hash function uses a random seed, so 
the actual encrypted password will be different each time.

On Wednesday, 1 June 2016 13:28:38 UTC+1, Johannes Kastl wrote:
>
> Hi all, 
>
> I tried the following task, but it reports 'changed' each time it 
> runs. Is this intentional? 
>
> - name: "create user" 
>   user: name="foobar" 
>     password="{{ some_variable | password_hash('sha512') }}" 
>     createhome=yes 
>     state=present 
>   register: some_result_variable 
>
> Ansible 2.1 running on OSX 10.10.5 with different linux machines as 
> targets. 
>
> Johannes 
>
>

-- 
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/5a1dc889-d193-4ef2-b4f3-3cdb49241f12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to