title: Ansible fail a playbook if directory not exist in windows
body: <p>How can I fail a playbook if directory in windows not exist</p>
  <pre class="lang-yaml prettyprint-override"><code> - name: Obtain information about a folder
     win_stat:
       path: C:\temp
     register: file_info
  
   - debug:
       var: file_info
  </code></pre>