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/574F2760.3050505%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to