yum_config_manager

Ansible Role: Yum Config Manager

GitHub Build Status Galaxy Ansible Ansible

Role to use yum-config-manager to manage repositories on RHEL.

Requirements

Ansible 2.4 or higher

Red Hat Enterprise Linux 7 or equivalent

Valid Red Hat Subscriptions

Role Variables

Currently the following variables are supported:

  • rhui_config_path - The path to the repository configuration files. Defaults to /etc/yum.repos.d
  • rhui_config_name - The name of the file to edit for repository management. Defaults to redhat-rhui.repo
  • repositories - Specifies which repositories to enable/disable, details below

To enable/disable specific repositories:

rhsm_repositories:
  enabled:
    - enabled-repository
  disabled:
    - disabled-repository

The list of repositories in disabled is processed before enabled.

Dependencies

Privilege escalation (sudo) is required for this role to function.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - role: ansible-role-yum_config_manager
  vars:
    repositories:
      enabled:
        - rhui-REGION-rhel-server-rhscl
        - rhui-REGION-rhel-server-debug-rhscl
      disabled:
        - rhui-REGION-rhel-server-source-rh-common

License

Apache-2.0

Author Information

Joel Castillo (@joelbcastillo) for the NYC Department of Records Dev Team (@nycrecords

About

Role to use yum-config-manager to manage repositories on RHEL.

Install
ansible-galaxy install nycrecords/ansible-role-yum_config_manager
GitHub repository
License
apache-2.0
Downloads
1779
Owner