# check if the release is already deployed and tomcat is running, if true then skip the roles

**URL:** <https://forum.ansible.com/t/check-if-the-release-is-already-deployed-and-tomcat-is-running-if-true-then-skip-the-roles/27438>\
**Category:** Ansible Project\
**Created:** [May 3, 2018, 1:47pm UTC](https://forum.ansible.com/t/check-if-the-release-is-already-deployed-and-tomcat-is-running-if-true-then-skip-the-roles/27438 "2018-05-03T13:47:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Chen](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Robert\_Chen](https://forum.ansible.com/u/Robert_Chen)\
**Post date:** [May 3, 2018, 1:47pm UTC](https://forum.ansible.com/t/check-if-the-release-is-already-deployed-and-tomcat-is-running-if-true-then-skip-the-roles/27438/1 "2018-05-03T13:47:48Z")

</div>

say my the release is under /home/app/10.1.1222/…

how to implement this in ansible playbook: check if the release is already deployed and tomcat is running, if true then skip the roles
