<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">yum</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">CentOS/RHEL Linux</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Currently the <code class="notranslate">yum</code> module has no functionality for handling checksums (according to <a href="https://docs.ansible.com/ansible/latest/yum_module.html" rel="nofollow">https://docs.ansible.com/ansible/latest/yum_module.html</a>). Thus, if you want to check that a downloaded RPM has the expected checksum you need to break it into a <code class="notranslate">get_url</code> and then a <code class="notranslate">yum</code> to install from the downloaded artifact</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>


<p dir="auto">Currently:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Get RPM
  get_url:
    url: https://centos7.iuscommunity.org/ius-release.rpm
    checksum: &quot;md5:insertmd5sumhere&quot;
    dest: /tmp/ius-release.rpm

- name: Install downloaded rpm
   yum:
      name: /tmp/ius-release.rpm
      state: present"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Get RPM</span>
  <span class="pl-ent">get_url</span>:
    <span class="pl-ent">url</span>: <span class="pl-s">https://centos7.iuscommunity.org/ius-release.rpm</span>
    <span class="pl-ent">checksum</span>: <span class="pl-s"><span class="pl-pds">"</span>md5:insertmd5sumhere<span class="pl-pds">"</span></span>
    <span class="pl-ent">dest</span>: <span class="pl-s">/tmp/ius-release.rpm</span>

- <span class="pl-ent">name</span>: <span class="pl-s">Install downloaded rpm</span>
   <span class="pl-ent">yum</span>:
      <span class="pl-ent">name</span>: <span class="pl-s">/tmp/ius-release.rpm</span>
      <span class="pl-ent">state</span>: <span class="pl-s">present</span></pre></div>
<p dir="auto">Proposed:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: get and install RPM
  yum:
    url: https://centos7.iuscommunity.org/ius-release.rpm
    checksum: &quot;md5:insertmd5sumhere&quot;
    state: present"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">get and install RPM</span>
  <span class="pl-ent">yum</span>:
    <span class="pl-ent">url</span>: <span class="pl-s">https://centos7.iuscommunity.org/ius-release.rpm</span>
    <span class="pl-ent">checksum</span>: <span class="pl-s"><span class="pl-pds">"</span>md5:insertmd5sumhere<span class="pl-pds">"</span></span>
    <span class="pl-ent">state</span>: <span class="pl-s">present</span></pre></div>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">The module unarchive should support the parameter "checksum" the same way the get_uri module provides it (<a href="https://docs.ansible.com/ansible/latest/modules/get_url_module.html#parameter-checksum" rel="nofollow">https://docs.ansible.com/ansible/latest/modules/get_url_module.html#parameter-checksum</a>)</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">unarchive.py</p>
<h5 dir="auto">ADDITIONAL INFORMATION</h5>


<p dir="auto">could provide a PR if desired</p>