# Validate the deployment from role level

**URL:** <https://forum.ansible.com/t/validate-the-deployment-from-role-level/27630>\
**Category:** Ansible Project\
**Created:** [May 25, 2018, 3:29pm UTC](https://forum.ansible.com/t/validate-the-deployment-from-role-level/27630 "2018-05-25T15:29:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BIJAY\_PARIDA](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@BIJAY\_PARIDA](https://forum.ansible.com/u/BIJAY_PARIDA)\
**Post date:** [May 25, 2018, 3:29pm UTC](https://forum.ansible.com/t/validate-the-deployment-from-role-level/27630/1 "2018-05-25T15:29:44Z")

</div>

Hi,

I want to validate two inventories files if they contain matching string and continue with the deployment based on the validation result.

I don’t want to have a pre-task at the deployment level. I want the validation should happen from the role level.

Thanks  
Bijay
