Ansible --diff --check only display changes

188 views
Skip to first unread message

David Neudorfer

unread,
Mar 23, 2015, 6:06:18 PM3/23/15
to ansible...@googlegroups.com
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?

Dan Vaida

unread,
Mar 28, 2015, 1:44:02 PM3/28/15
to ansible...@googlegroups.com
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 :)

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

Cheers,

Dan.
Reply all
Reply to author
Forward
0 new messages