Re: [ansible-project] Re: Is the user module idempotent?

2016-06-01 Thread Johannes Kastl
On 01.06.16 17:51 Matt Martz wrote: > Alternatively, you could look at the `update_password` option for the user > module. http://docs.ansible.com/ansible/user_module.html > > The default is `always` > > "`always` will update passwords if they differ. `on_create` will only set > the password

Re: [ansible-project] Re: Is the user module idempotent?

2016-06-01 Thread Matt Martz
Alternatively, you could look at the `update_password` option for the user module. http://docs.ansible.com/ansible/user_module.html The default is `always` "`always` will update passwords if they differ. `on_create` will only set the password for newly created users." On Wed, Jun 1, 2016 at

Re: [ansible-project] Re: Is the user module idempotent?

2016-06-01 Thread Kai Stian Olstad
On 01.06.2016 17:00, Johannes Kastl wrote: On 01.06.16 15:25 Uditha Desilva wrote: I believe that's because the password_hash function uses a random seed, so the actual encrypted password will be different each time. Any idea how to avoid this? Storing the hash of the password in a

[ansible-project] Re: Is the user module idempotent?

2016-06-01 Thread Uditha Desilva
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