# role callback dependencies

**URL:** <https://forum.ansible.com/t/role-callback-dependencies/20343>\
**Category:** Ansible Project\
**Created:** [January 25, 2016, 7:15pm UTC](https://forum.ansible.com/t/role-callback-dependencies/20343 "2016-01-25T19:15:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Biancaniello](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mike\_Biancaniello](https://forum.ansible.com/u/Mike_Biancaniello)\
**Post date:** [January 25, 2016, 7:15pm UTC](https://forum.ansible.com/t/role-callback-dependencies/20343/1 "2016-01-25T19:15:28Z")

</div>

So I have been playing around with multiple callbacks and ordering. I created two callback plugins: calltest1, calltest2. Each one simply prints its number and fcn to the screen:

e.g.

`  
TEST1: v2\_playbook\_on\_start()  
TEST2: v2\_playbook\_on\_start()

`

Some observations:

1. If I put the callbacks in ./callback\_plugins, I cannot choose the order at runtime. I assume they run in ABC order.
2. If I put the callbacks in separate roles, (roles/calltest1/callback\_plugins, roles/calltest2/callback\_plugins/ respectively), then I can control the ordering by calling roles:

file: calltestsite.yml

`
