community.general.rhn_channel (0.1.4) — module

Adds or removes Red Hat software channels

Authors: Vincent Van der Kussen (@vincentvdk)

Install collection

Install with ansible-galaxy collection install community.general:==0.1.4


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.4

Description

Adds or removes Red Hat software channels.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add a Red Hat software channel
  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

Inputs

    
url:
    description:
    - The full URL to the RHN/Satellite API.
    required: true

name:
    description:
    - Name of the software channel.
    required: true

user:
    description:
    - RHN/Satellite login.
    required: true

state:
    default: present
    description:
    - Whether the channel should be present or not, taking action if the state is different
      from what is stated.

sysname:
    description:
    - Name of the system as it is known in RHN/Satellite.
    required: true

password:
    description:
    - RHN/Satellite password.
    required: true

validate_certs:
    default: true
    description:
    - If C(False), SSL certificates will not be validated.
    - This should only set to C(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.
    type: bool
    version_added: 0.2.0
    version_added_collection: community.general