yum: Add example for enable and disable repo (#34492)
Fixes: #29897 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
accf79f406
commit
f84f386ea7
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue