Module Output Includes host and status...

Is there a way to have the output of a module on the command line be a pure JSON object?

`

$ ansible localhost -m setup | head
localhost | SUCCESS => {
“ansible_facts”: {
“ansible_all_ipv4_addresses”: [

`

ie, removing the ‘localhost | SUCCESS =>’ portion?

I’m sure can be done, since I’ve seen it referenced so often, but for the life of me, I can’t figure out what needs to change.

Thanks

you can filter it out with awk/sed or use a custom callback that does
it directly.