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

**URL:** <https://forum.ansible.com/t/load-callback-plugins-in-the-ansible-script-gh-8396/15848>\
**Category:** Ansible Project\
**Created:** [August 4, 2014, 8:26am UTC](https://forum.ansible.com/t/load-callback-plugins-in-the-ansible-script-gh-8396/15848 "2014-08-04T08:26:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeglandos](https://avatars.discourse-cdn.com/v4/letter/z/c57346/32.png) [@zeglandos](https://forum.ansible.com/u/zeglandos)\
**Post date:** [August 4, 2014, 8:26am UTC](https://forum.ansible.com/t/load-callback-plugins-in-the-ansible-script-gh-8396/15848/1 "2014-08-04T08:26:29Z")

</div>

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](https://github.com/ansible/ansible/pull/8396) 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

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [August 4, 2014, 12:09pm UTC](https://forum.ansible.com/t/load-callback-plugins-in-the-ansible-script-gh-8396/15848/2 "2014-08-04T12:09:23Z")

</div>

Hi.

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

Thanks!
