mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 20:32:45 +00:00
yum: Add example for enable and disable repo (#34492)
Fixes: #29897 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
Adam Miller
parent
accf79f406
commit
f84f386ea7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user