rhn_channel – Adds or removes Red Hat software channels

Synopsis

  • Adds or removes Red Hat software channels.

Parameters

Parameter Choices/Defaults Comments
name
- / required
Name of the software channel.
password
- / required
RHN/Satellite password.
state
-
Default:
"present"
Whether the channel should be present or not, taking action if the state is different from what is stated.
sysname
- / required
Name of the system as it is known in RHN/Satellite.
url
- / required
The full URL to the RHN/Satellite API.
user
- / required
RHN/Satellite login.

Notes

Note

  • This module fetches the system id from RHN.
  • This module doesn’t support check_mode.

Examples

- 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

Red Hat Support

More information about Red Hat’s support of this module is available from this Red Hat Knowledge Base article.

Authors

  • Vincent Van der Kussen (@vincentvdk)

Hint

If you notice any issues in this documentation you can edit this document to improve it.

© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/rhn_channel_module.html