title: How to disable all repositories using yum module in ansible?
body: <p>I'm trying to disable all the yum repos and enable just 1 repo for installing a yum package.How to disable all repos using yum module?</p>
  
  <p>Tried to use disablerepo='*' but not sure whether this is the correct method</p>
  
  <pre><code>- name: Update the uek kernel pkg on gateways
      yum:
        name: "{{ packages }}"
        disablerepo: "*"
        enablerepo: test_iso
      vars:
        packages:
        - kernel-uek
      become_user: root
  </code></pre>