# Starting AppDynamics with play

**URL:** <https://forum.ansible.com/t/starting-appdynamics-with-play/26983>\
**Category:** Ansible Project\
**Created:** [March 13, 2018, 12:10pm UTC](https://forum.ansible.com/t/starting-appdynamics-with-play/26983 "2018-03-13T12:10:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Hunt](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@Patrick\_Hunt](https://forum.ansible.com/u/Patrick_Hunt)\
**Post date:** [March 13, 2018, 12:10pm UTC](https://forum.ansible.com/t/starting-appdynamics-with-play/26983/1 "2018-03-13T12:10:49Z")

</div>

I have a play that is fairly simple, to start AppDynamics. I am able to start/stop each part as needed, except a portion called EUM (End User Monitoring).

My test play looks like:

`

---

<div class="post-metadata">

**Author:** ![Patrick\_Hunt](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@Patrick\_Hunt](https://forum.ansible.com/u/Patrick_Hunt)\
**Post date:** [March 13, 2018, 2:24pm UTC](https://forum.ansible.com/t/starting-appdynamics-with-play/26983/2 "2018-03-13T14:24:47Z")

</div>

I used the “async” and “poll” options to work around this. So my trouble task now looks like:

`

- name: start eum  
shell: bin/eum.sh start  
args:  
chdir: /opt/AppDynamics/EUEM/eum-processor/  
async: 30  
poll: 10

`

If I register the output as a variable and print it, it still only displays the “EUM Processor started…” line, but the EUM process is actually, as opposed to previously where it would not be fully started before the play ended.

Hope this helps someone else out!

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [March 18, 2018, 12:06pm UTC](https://forum.ansible.com/t/starting-appdynamics-with-play/26983/3 "2018-03-18T12:06:33Z")

</div>

You should not start the application like this, and as you have seen it mostly failes.  
Create a file for you init system and start the application with the init system.

---

<div class="post-metadata">

**Author:** ![Patrick\_Hunt](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@Patrick\_Hunt](https://forum.ansible.com/u/Patrick_Hunt)\
**Post date:** [March 20, 2018, 1:16pm UTC](https://forum.ansible.com/t/starting-appdynamics-with-play/26983/4 "2018-03-20T13:16:49Z")

</div>

Good idea Kai, thank you.
