Skip to content

Commit

Permalink
yum: Add example for enable and disable repo (ansible#34492)
Browse files Browse the repository at this point in the history
Fixes: ansible#29897

Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde authored and maxamillion committed Jan 10, 2018
1 parent accf79f commit f84f386
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/ansible/modules/packaging/os/yum.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,16 @@
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
Expand Down

0 comments on commit f84f386

Please sign in to comment.