community.general.rhn_channel module – Adds or removes Red Hat software channels
Note
This module is part of the community.general collection (version 9.4.0).
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
.
DEPRECATED
- Removed in:
version 10.0.0
- Why:
RHN hosted at redhat.com was discontinued years ago, and Spacewalk 5 (which uses RHN) is EOL since 2020, May 31st; while this module could work on Uyuni / SUSE Manager (fork of Spacewalk 5), we have not heard about anyone using it in those setups.
- Alternative:
Contact the community.general maintainers to report the usage of this module, and potentially step up to maintain it.
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
Status
This module will be removed in version 10.0.0. [deprecated]
For more information see DEPRECATED.