title: Execute an action only when a directory is non empty in ansible
body: <p>I need to execute the action in the playbook, only when a directory is non-empty.</p>
  
  <p>How to check the condition in <code>when:</code></p>