How to install or upgrade in ansible all packages in a yum repository
<p>I want install all packages from my repo, I can't repeat this command:</p>

<pre><code>yum repo-pkgs reponame install
</code></pre>

<p>in Ansible playbook.</p>

<p>All what i found it: example how install one package or list of know packages:</p>

<pre><code>- name: upgrade all packages
  yum: name=* state=latest
</code></pre>

<p>not work:  write all packages installed 
-but it not right</p>