I will give that playbook a try. I didnt want to change the default 
password we already had provided them on initial account creation, just let 
them do it when they logged in. It remains locked until they tell me they 
are ready to login the first time.  

On Wednesday, June 1, 2016 at 2:20:24 PM UTC-4, Johannes Kastl wrote:
>
> On 01.06.16 20:17 Alan Harkleroad wrote: 
>
> > ansible test-server-suite -s -m shell -a "passwd -u username" -K 
>
> You can put this into a playbook, too. 
>
> - hosts: foobar 
>   become: true 
>   become_method: sudo 
>
>   tasks: 
>   - name: "Do something" 
>     command: passwd -u username 
>
> Untested. 
>
> Also, why not use the user module to set the password? 
>
> 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/5c265271-f531-4df9-8bda-6c403f961ee6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to