# Workflows for automating your production environment with Dynatrace and Red Hat Ansible

**URL:** <https://community.dynatrace.com/t/workflows-for-automating-your-production-environment-with-dynatrace-and-red-hat-ansible/46208>\
**Category:** Dynatrace Tips\
**Tags:** workflows\
**Created:** [June 19, 2024, 11:02am UTC](https://community.dynatrace.com/t/workflows-for-automating-your-production-environment-with-dynatrace-and-red-hat-ansible/46208 "2024-06-19T11:02:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Mohr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alexander_mohr/32/25219_2.png) [@Alexander\_Mohr](https://community.dynatrace.com/u/Alexander_Mohr)\
**Post date:** [June 19, 2024, 11:02am UTC](https://community.dynatrace.com/t/workflows-for-automating-your-production-environment-with-dynatrace-and-red-hat-ansible/46208/1 "2024-06-19T11:02:49Z")

</div>

Hello Dynatrace Community,

Here is the first article of the series presenting the various Workflows samples that can help you in your various tasks from everyday work. We’re starting with automation between Red Hat Ansible and Dynatrace.

The first sample workflow will help you orchestrate the auto-remediation with Red Hat Ansible Automation Platform, incident management with ServiceNow, and messaging via Slack to reduce downtime and MTTR. Thanks to it, you can automate tasks like:

- Inform the correct team via Slack

- Create a ServiceNow ticket and update it with remediation details

- Initiate the remediation scenario to reset the canary weighting with the Red Hat Ansible Automation Controller

- (Optionally) Allow the handing over of parameters for the Ansible job template execution.

- Link remediation details to the problem in Dynatrace and document them in ServiceNow.

You can set a fine-grained filter to run a workflow for an event with an active state, error category, filters for additional tags like release stage or environment, and an identified root cause entity.

 ![Alexander_Mohr_0-1718794881921.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/f/af39e3c1e523f9298b2ae3e01dc5cdf859534e44.jpeg)

The second workflow is here to mitigate CPU and failure rate with Red Hat Event Driven Ansible. Besides the use cases from above, like automating communication on Slack, this workflow can:

- Forecast situations with high load of CPU and initiate change and remediation scenarios before downtime occurs, thanks to Davis AI

- Identify and inform relevant stakeholders

- Map the correct playbook to the DAVIS event, thanks to Red Hat Event-Driven-Ansible

 ![Alexander_Mohr_1-1718794881925.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/43018f70654c52ec6cf19814ee5907582a0bc4b9.png)

**[Link to the GitHub repo with both samples](https://github.com/Dynatrace/Dynatrace-workflow-samples/tree/main/samples/red%20hat%20ansible%20automation%20platform)**

For more details and information, check out this blog post on [How Red Hat and Dynatrace intelligently automate your production environment](https://www.dynatrace.com/news/blog/how-red-hat-and-dynatrace-intelligently-automate-your-production-environment/).

If you have more examples of workflows combining the features of Dynatrace and Red Hat Ansible, let us know! This GitHub repository is community-driven, and it’s here for you and your workflows and contributions. Help others use automation in Dynatrace to the fullest and learn its features and possibilities along the way.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [June 20, 2024, 8:16am UTC](https://community.dynatrace.com/t/workflows-for-automating-your-production-environment-with-dynatrace-and-red-hat-ansible/46208/2 "2024-06-20T08:16:27Z")

</div>

Thank you!
