W3cubDocs

/Ansible 2.11

community.general.rhn_channel – Adds or removes Red Hat software channels

Note

This plugin is part of the community.general collection (version 2.0.1).

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 Choices/Defaults Comments
name
string / required
Name of the software channel.
password
string / required
RHN/Satellite password.

aliases: pwd
state
string
    Choices:
  • present
  • absent
Whether the channel should be present or not, taking action if the state is different from what is stated.
sysname
string / required
Name of the system as it is known in RHN/Satellite.
url
string / required
The full URL to the RHN/Satellite API.
user
string / required
RHN/Satellite login.
validate_certs
boolean
added in 0.2.0 of community.general
    Choices:
  • no
  • yes
If False, SSL certificates will not be validated.
This should only set to False when used on self controlled sites using self-signed certificates, and you are absolutely sure that nobody can modify traffic between the module and the site.

Notes

Note

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

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

Authors

  • Vincent Van der Kussen (@vincentvdk)

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/community/general/rhn_channel_module.html