Recovering stdout and stderr from sudo commands in async mode

11 views
Skip to first unread message

Jose Ángel De Bustos Pérez

unread,
Nov 12, 2015, 10:53:44 AM11/12/15
to Ansible Project
Hi,

I have to run sudo commands in async mode and recover the stdout/stderr.

I have written a module to run sudo commands but I am not able to recover the stdout and stderr. All of this is done from a python script and in the json which is returned the file indicated in results_file is empty.

Any ideas/suggestions?

I am new to ansible so maybe there is a better way to do that.

Best regards,
Reply all
Reply to author
Forward
0 new messages