# whitelist callback plugin

**URL:** <https://forum.ansible.com/t/whitelist-callback-plugin/33571>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [August 9, 2020, 9:05pm UTC](https://forum.ansible.com/t/whitelist-callback-plugin/33571 "2020-08-09T21:05:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerry\_Hwang](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@Jerry\_Hwang](https://forum.ansible.com/u/Jerry_Hwang)\
**Post date:** [August 9, 2020, 9:05pm UTC](https://forum.ansible.com/t/whitelist-callback-plugin/33571/1 "2020-08-09T21:05:49Z")

</div>

I am working on callback plugin [https://docs.ansible.com/ansible/latest/plugins/callback.html](https://docs.ansible.com/ansible/latest/plugins/callback.html)  
and found I can control to whitelist a specific callback plugin like this way in a playbook run.

`ANSIBLE_CALLBACK_WHITELIST=notify_me ansible-playbook node-build.yml`

Anyone knows if it is possible to do so with AWX?

Thanks,  
Jerry

---

<div class="post-metadata">

**Author:** ![Hrvoje\_Gaspar](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@Hrvoje\_Gaspar](https://forum.ansible.com/u/Hrvoje_Gaspar)\
**Post date:** [August 10, 2020, 2:05pm UTC](https://forum.ansible.com/t/whitelist-callback-plugin/33571/2 "2020-08-10T14:05:42Z")

</div>

If I’m not mistaken, if you put ANSIBLE\_CALLBACK\_WHITELIST env variable under extra environment variables section of settings → jobs, it should be applied.  
Just keep in mind that it should be json formated.

Dana nedjelja, 9. kolovoza 2020. u 23:05:49 UTC+2 korisnik [speci...@gmail.com](mailto:speci...@gmail.com) napisao je:

---

<div class="post-metadata">

**Author:** ![Jerry\_Hwang](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@Jerry\_Hwang](https://forum.ansible.com/u/Jerry_Hwang)\
**Post date:** [August 10, 2020, 7:53pm UTC](https://forum.ansible.com/t/whitelist-callback-plugin/33571/3 "2020-08-10T19:53:16Z")

</div>

Thanks.

Do you mean this?  
AWX → Template → a job → Details (settings) → Extra Variables (json)  
“ANSIBLE\_CALLBACK\_WHITELIST=notify\_me”

---

<div class="post-metadata">

**Author:** ![Hrvoje\_Gaspar](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@Hrvoje\_Gaspar](https://forum.ansible.com/u/Hrvoje_Gaspar)\
**Post date:** [August 11, 2020, 6:22am UTC](https://forum.ansible.com/t/whitelist-callback-plugin/33571/4 "2020-08-11T06:22:28Z")

</div>

Not really. That would set an extra variable for the playbook runtime.  
What you are looking for is a way to set an environment variable.  
You will need to have admin access on awx, then navigate to awx settings → jobs.  
This is what you are looking for (17.2. Jobs), at the bottom of the screen you will see extra environment variables:

[https://docs.ansible.com/ansible-tower/latest/html/administration/configure\_tower\_in\_tower.html](https://docs.ansible.com/ansible-tower/latest/html/administration/configure_tower_in_tower.html)

Dana ponedjeljak, 10. kolovoza 2020. u 21:53:17 UTC+2 korisnik [speci...@gmail.com](mailto:speci...@gmail.com) napisao je:

---

<div class="post-metadata">

**Author:** ![Jerry\_Hwang](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@Jerry\_Hwang](https://forum.ansible.com/u/Jerry_Hwang)\
**Post date:** [August 11, 2020, 2:19pm UTC](https://forum.ansible.com/t/whitelist-callback-plugin/33571/5 "2020-08-11T14:19:55Z")

</div>

I see. I was hoping a playbook user can whitelist a different plugin flexibly depending on which playbook he runs (like the ansible-playbook command line example)…

thank you
