W3cubDocs

/Ansible

rhn_channel - Adds or removes Red Hat software channels

Synopsis

  • Adds or removes Red Hat software channels

Options

parameter required default choices comments
name
yes
Name of the software channel.
password
yes
RHN/Satellite password
state
no present
Whether the channel should be present or not, taking action if the state is different from what is stated.
sysname
yes
Name of the system as it is known in RHN/Satellite.
url
yes
The full URL to the RHN/Satellite API.
user
yes
RHN/Satellite login

Examples

- rhn_channel:
    name: rhel-x86_64-server-v2vwin-6
    sysname: server01
    url: https://rhn.redhat.com/rpc/api
    user: rhnuser
    password: guessme

Notes

Note

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

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Maintenance Info

For more information about Red Hat’s this support of this module, please refer to this knowledge base article<https://access.redhat.com/articles/rhel-top-support-policies>

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.

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