title: How to use the `yum` module to clean and make cache the yum repo in Ansible?
body: <p>Ansible has the <code>yum</code> module,</p>
  <p>We can use it to install a package:</p>
  <pre><code>​ansible all -m yum -a 'name=vim state=latest'  
  </code></pre>
  <p>but how to use it to execute the clean and make cache commands?
  I only know the script way:</p>
  <pre><code>ansible all -m shell -a 'yum clean all'
  ansible all -m shell -a 'yum makecache'
  </code></pre>
  <p>So, how to use the <code>yum</code> module to clean and make cache the yum repo?</p>