title: Ansible stat module directory size output in MiB / GiB. How to convert output?
body: <pre><code>  - name: check for file size
      stat: 
         path: /apps/InstallDir/data
      register: myDir
  
    - debug: var=myDir.stat.size
  </code></pre>
  <p>how to get output in required format MB or GB and debug msg when it's greater than threshold</p>