Is it possible to see the JSON output of an ad-hoc command?

151 views
Skip to first unread message

Kevin Bell

unread,
May 13, 2014, 11:15:42 PM5/13/14
to ansible...@googlegroups.com
If I run something like:

$ ansible -a "[ -d my_app ] chdir=/run/uwsgi/app" ec2

Even with max verbosity, this doesn't seem to output the raw JSON output.

However if I do, e.g. :

  - command: "[ -d uwsgi_dev ] chdir=/run/uwsgi/app"
    register: result
  - debug: var=result

Then I get the full JSON output. Is it possible to get that in ad-hoc mode?

Michael DeHaan

unread,
May 14, 2014, 8:21:16 AM5/14/14
to ansible...@googlegroups.com
"-v" will show stdout of the command and shell modules.

I





--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7ad9bd52-4a8b-4342-b7cf-2dd3be4aa882%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages