Enable or disable Red Hat repositories using "subscription-manager"
rhsub_repos:
- name: rhel-7-server-extras-rpms # wildcard or repo name
state: enable # enable or disable
- hosts: rhel_servers
roles:
- { role: mcgill.subscription-manager }
- The tasks need to be refactored to test if a channel is enabled or disabled before running the appropriate command. As it currently stands, it will always "change", though with no negative impact on the server.
GPL 3
Chris Poupart [email protected]