Ansible --diff --check only display changes

Would a callback plugin be the right place to start if I wanted to only the display “changed:” tasks including the changes:

— before: /etc/motd
+++ after: /opt/wp/app/hegemon/ansible/roles/common/templates/motd.j2

and silence all “ok:” or “skipped:” tasks?

Has anyone else done something similar?

Unfortunately, some modules don’t support --diff and --check.

Yes, I believe a callback plugin would be the best way to do this.

Not aware of anything like that so far, but I’ve seen people pushing the output to Elasticsearch, APIs, XLS files and other crazy things :slight_smile:

One of the plugins that I enjoy is: https://gist.github.com/cliffano/9868180

Cheers,

Dan.