title: Ansible: yum module's "state" parameter
body: <p>In the docs of Ansible,
  <a href="http://docs.ansible.com/ansible/yum_module.html#options" rel="nofollow noreferrer">http://docs.ansible.com/ansible/yum_module.html#options</a></p>
  
  <p>There is a comment about "state" parameter:</p>
  
  <blockquote>
    <p>Whether to install (present or installed, latest), or remove (absent or removed) a package.</p>
  </blockquote>
  
  <p><strong>My question is:</strong>  </p>
  
  <p>Are there any differences between the 3 choices(present, installed, latest)?Which one should I use when I run these commands below?</p>
  
  <pre><code>yum clean all &amp;&amp; yum makecache 
  yum upgrade
  </code></pre>