Hi,
is there a possibility to see stadout in addition to stderr of a shell
command executed as part of a playbook?
Frank
Hi,
is there a possibility to see stadout in addition to stderr of a shell
command executed as part of a playbook?
Frank
No, because of the pty usage involved in sudo ops, it is not included unless a module returns it in the JSON.
Hi,
is it planed to have stdout for shell command for future release?
Frank
Actually, shell commands already return this. They return stderr too, in the JSON.
I thought you were asking a general module question when a module leaks some stderr to actual stderr, versus capturing it and returning it a data structure.
They obviously do share all that from /usr/bin/ansible.
I do not plan to include those for playbooks as they are generally intended for idempotent config management. They do let you know more information when a failure occurs but keep
quiet on success.
It would be very, very useful, especially during development of a new
play(book), to have an ansible-playbook command line option to enable
printing out stdout results of shell command, because many commands
print relevant information to stdout.
Frank
It would be very, very useful, especially during development of a new
play(book), to have an ansible-playbook command line option to enable
printing out stdout results of shell command, because many commands
print relevant information to stdout.
I suppose if -D was overloaded to show this it would be reasonable.
At that point, it probably should show the results of all commands though, and gets slightly overwhelming, but it’s better than having more flags and complexity.
That sound good - I can test as soon as this feature gets available.
Just give me a hint ...
Frank