# Handler not run when using python vs ansible-playbook

**URL:** <https://forum.ansible.com/t/handler-not-run-when-using-python-vs-ansible-playbook/19235>\
**Category:** Ansible Developer\
**Created:** [September 11, 2015, 12:41am UTC](https://forum.ansible.com/t/handler-not-run-when-using-python-vs-ansible-playbook/19235 "2015-09-11T00:41:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmorris](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@mmorris](https://forum.ansible.com/u/mmorris)\
**Post date:** [September 11, 2015, 12:41am UTC](https://forum.ansible.com/t/handler-not-run-when-using-python-vs-ansible-playbook/19235/1 "2015-09-11T00:41:45Z")

</div>

So I have a webhook listener python app that runs Ansible. It seems that when I run with ansible-playbook my handler is executed fine, but running the same with the python app results in the handler not running.

I have it all nicely formatted in an issue already to I will post that: [https://github.com/ansible/ansible/issues/12316](https://github.com/ansible/ansible/issues/12316)

Am I missing something in my app? do I need to manually include handlers?
