Load callback plugins in the ansible script (GH #8396)

31 views
Skip to first unread message

zegl...@gmail.com

unread,
Aug 4, 2014, 4:26:29 AM8/4/14
to ansible...@googlegroups.com
This is an open discussion, since I'm far from an expert on ansible.

However, since I often run some commands on a lot of host, I've written a small callback plugin that summarize output on stdout and stderr.
I need this callback to be called when running ansible (not the playbook), since I only run once a command, and forget it after that.

So I copied the "callbacks.load_callback_plugins()" from ansible-playbook. See the GitHub pull request to see it.

To avoid breaking user experience that are not used to callback in the ansible command, it may be a good idea to implement as an option, e.g. "ansible --callbacks …"

I hope to gather comments on this :)


Adrien

Michael DeHaan

unread,
Aug 4, 2014, 8:09:26 AM8/4/14
to ansible...@googlegroups.com
Hi.

This is a development discussion topic, can you please post this to ansible-devel ?

Thanks!




--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/962bb491-23c9-4567-abaa-0261fa297b55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages