community.general.rhn_channel module – Adds or removes Red Hat software channels
Note
This module is part of the community.general collection (version 6.6.2).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.rhn_channel
.
Synopsis
Adds or removes Red Hat software channels.
Parameters
Parameter |
Comments |
---|---|
Name of the software channel. |
|
RHN/Satellite password. |
|
Whether the channel should be present or not, taking action if the state is different from what is stated. Choices:
|
|
Name of the system as it is known in RHN/Satellite. |
|
The full URL to the RHN/Satellite API. |
|
RHN/Satellite login. |
|
If This should only set to Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
Notes
Note
This module fetches the system id from RHN.
Examples
- name: Add a Red Hat software channel
community.general.rhn_channel:
name: rhel-x86_64-server-v2vwin-6
sysname: server01
url: https://rhn.redhat.com/rpc/api
user: rhnuser
password: guessme
delegate_to: localhost
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication