On 01.06.16 20:01 Alan Harkleroad wrote:
> 2. If i run it adhoc using ansible like so I get a response saying only 
> root can do this. 
> 
> ansible -m shell -a "passwd -u username" "test-server-suite" 
> --ask-become-pass
> 
> Is there no way to run that ad hoc from command line or as a playbook using 
> the user module or another module to unlock the same user across my entire 
> architecture?

You are missing the -b switch to actually run this command via the
default become method (aka sudo). You only tell it to prompt you for
the sudo password, but do not tell it to actually use sudo...

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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to