yum: Add example for enable and disable repo (#34492)

Fixes: #29897

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-01-10 23:21:00 +05:30 committed by Adam Miller
parent accf79f406
commit f84f386ea7

View file

@ -227,6 +227,16 @@ EXAMPLES = '''
yum:
list: ansible
register: result
- name: Install package with multiple repos enabled
yum:
name: sos
enablerepo: "epel,ol7_latest"
- name: Install package with multiple repos disabled
yum:
name: sos
disablerepo: "epel,ol7_latest"
'''
import os