# Use Ansible for auto-healing- restart app pools

**URL:** <https://community.dynatrace.com/t/use-ansible-for-auto-healing-restart-app-pools/20686>\
**Category:** Alerting\
**Tags:** problems-classic\
**Created:** [May 16, 2019, 7:56pm UTC](https://community.dynatrace.com/t/use-ansible-for-auto-healing-restart-app-pools/20686 "2019-05-16T19:56:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roushan\_kumar1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/roushan_kumar1/32/13520_2.png) [@roushan\_kumar1](https://community.dynatrace.com/u/roushan_kumar1)\
**Post date:** [May 16, 2019, 7:56pm UTC](https://community.dynatrace.com/t/use-ansible-for-auto-healing-restart-app-pools/20686/1 "2019-05-16T19:56:44Z")

</div>

I want to implement auto healing for a web service health/performance monitoring. If Failure rate increases to 100% for any services then Ansible should invoke the script to restart the app pool of the server which will have highest failure rate.

Can you please suggest is this possible? And how?

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [May 17, 2019, 1:56pm UTC](https://community.dynatrace.com/t/use-ansible-for-auto-healing-restart-app-pools/20686/2 "2019-05-17T13:56:18Z")

</div>

Yes that is possible. A good starting point to get into self healing with dynatrace an ansible would be Andi’s [Performance Clinic](https://www.youtube.com/watch?v=mr4KFAgDjNg) with Jürgen Etzlstorfer on that topic.

There also is a [blog](https://www.dynatrace.com/news/blog/set-up-ansible-tower-with-dynatrace-to-enable-your-self-healing-applications/) and [documentation](https://www.dynatrace.com/support/help/setup-and-configuration/integrations/third-party-integrations/deployment-automation-frameworks/dynatrace-and-ansible-tower-integration/?_ga=2.258287882.1228856104.1557818426-772871668.1543078653) about the dynatrace ansible integration and self healing with it.
