nycrecords.yum_config_manager
Ansible Role: Yum Config Manager
This role helps you manage software repositories using yum-config-manager on RHEL (Red Hat Enterprise Linux).
Requirements
- You need Ansible version 2.4 or higher.
- This role works on Red Hat Enterprise Linux 7 or a similar system.
- You must have valid Red Hat subscriptions.
Role Variables
You can use the following variables:
rhui_config_path
- Path to where the repository configuration files are located. Default is/etc/yum.repos.d
.rhui_config_name
- Name of the file to modify for managing repositories. Default isredhat-rhui.repo
.repositories
- Used to specify which repositories to enable or disable (details below).
To enable or disable specific repositories, you can use this structure:
rhsm_repositories:
enabled:
- your-enabled-repository
disabled:
- your-disabled-repository
The repositories listed under disabled
will be processed before those under enabled
.
Dependencies
To run this role, you will need privilege escalation (sudo).
Example Playbook
Here’s a simple example of how to use this role in a playbook:
- 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
This role is licensed under Apache-2.0.
Author Information
This role was created by Joel Castillo (@joelbcastillo) for the NYC Department of Records Dev Team (@nycrecords).
Informazioni sul progetto
Role to use yum-config-manager to manage repositories on RHEL.
Installa
ansible-galaxy install nycrecords.yum_config_manager
Licenza
apache-2.0
Download
1.8k
Proprietario