# Help: Ansible using find module with stat variables for conditionals. xxx.results\[x\].stat.exists == false

**URL:** <https://forum.ansible.com/t/help-ansible-using-find-module-with-stat-variables-for-conditionals-xxx-results-x-stat-exists-false/27728>\
**Category:** Ansible Project\
**Created:** [June 6, 2018, 8:28pm UTC](https://forum.ansible.com/t/help-ansible-using-find-module-with-stat-variables-for-conditionals-xxx-results-x-stat-exists-false/27728 "2018-06-06T20:28:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve6](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Steve6](https://forum.ansible.com/u/Steve6)\
**Post date:** [June 6, 2018, 8:28pm UTC](https://forum.ansible.com/t/help-ansible-using-find-module-with-stat-variables-for-conditionals-xxx-results-x-stat-exists-false/27728/1 "2018-06-06T20:28:36Z")

</div>

Hello!

My goal is to be able to find a list of directories on each remote machine and if they exist then skip all follow up tasks if they exist. The issue I am running into is I am not exactly sure how to use this in a conditional to automate the number in the results splunk\_base\_apps\_installed.results.stat.exists. I am also not sure how to determine what that number is for each result splunk\_base\_apps\_installed.results.stat.exists and I can not find this in the debug I setup. As seen in the output at the bottom this works on the second machine and skips the task like it should but does not work on the first machine. I thought the value for the first machine would be 0 or 1 but in this case the value for machine two was 1 and machine one did not work on 0 or 2. Any help would be really appreciated!

-------------- Ansible Playbook below --------------

`
