Some ansible commands produce json output that's barely readable for humans. It distracts people when they need to check if playbook executed correctly and causes confusion.
Example commands are shell
and replace
- they generate a lot of useless noise. How can I prevent this? Simple ok | changed | failed is enough. I don't need the whole JSON.
Use
no_log: True
on those tasks where you want to suppress all further output.I believe the only mention of this feature is within the FAQ.
Example playbook:
Example output: