title: Install multiple local rpms using Ansible
body: <p>I have to install dozen of rpms located in a specific directory using ansible. Right now I'm using the syntax like:</p>
  
  <pre><code>- name: install uploaded rpms
    command: rpm -ivh /tmp/*.rpm
  </code></pre>
  
  <p>I want to do it using yum module, but don't know, how to tell it to install all rpms in a directory (not to specify name of each file).</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks in advance</p>