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