redhat.satellite.redhat_manifest – Interact with a Red Hat Satellite Subscription Manifest

Note

This plugin is part of the redhat.satellite collection (version 1.5.0).

To install it use: ansible-galaxy collection install redhat.satellite.

To use it in a playbook, specify: redhat.satellite.redhat_manifest.

New in version 1.0.0: of redhat.satellite

Synopsis

  • Download and modify a Red Hat Satellite Subscription Manifest

Parameters

Parameter Choices/Defaults Comments
content_access_mode
string
    Choices:
  • org_environment
  • entitlement ←
Content Access Mode of the Subscription Manifest.
Setting content_access_mode=org_enviroment enables Simple Content Access.
name
string
Manifest Name
password
string / required
Red Hat Portal password
path
path
path to export the manifest
pool_id
string
Subscription pool_id
pool_state
string
    Choices:
  • present ←
  • absent
Subscription state
portal
string
Default:
"https://subscription.rhsm.redhat.com"
Red Hat Portal subscription access address
quantity
integer
quantity of pool_id Subscriptions
state
string
    Choices:
  • present ←
  • absent
Manifest state
username
string / required
Red Hat Portal username
uuid
string
Manifest uuid
validate_certs
boolean
    Choices:
  • no
  • yes ←
Validate Portal SSL

Examples

- name: Create satellite.example.com Manifest and add 7 sub
  redhat.satellite.redhat_manifest:
    name: "satellite.example.com"
    username: "john-smith"
    password: "changeme"
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    quantity: 7

- name: Ensure my manifest has 10 of one subs in it and export
  redhat.satellite.redhat_manifest:
    uuid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
    username: john-smith
    password: changeme
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    quantity: 10
    path: /root/manifest.zip

- name: Remove all of one subs from satellite.example.com
  redhat.satellite.redhat_manifest:
    name: satellite.example.com
    username: john-smith
    password: changeme
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    pool_state: absent

Authors

  • Sean O’Keeffe (@sean797)