# with\_items fail condition

**URL:** <https://forum.ansible.com/t/with-items-fail-condition/23880>\
**Category:** Ansible Project\
**Created:** [March 3, 2017, 6:51pm UTC](https://forum.ansible.com/t/with-items-fail-condition/23880 "2017-03-03T18:51:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strung6013](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Strung6013](https://forum.ansible.com/u/Strung6013)\
**Post date:** [March 3, 2017, 6:51pm UTC](https://forum.ansible.com/t/with-items-fail-condition/23880/1 "2017-03-03T18:51:52Z")

</div>

got a script that is trying to check to see if a path exists, both in “Program Files” and “Program Files x86” and that part works, in that I can iterate over and check both paths, but what I am having trouble doing is having it fail only when both paths don’t exists.

What I want it to do is only fail if both don’t exists. Otherwise I want it to show success if either one or the other is there. Any ideas?
