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

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?

“-v” will show stdout of the command and shell modules.

I