theforeman.foreman.redhat_manifest (4.0.0) — module

Interact with a Red Hat Satellite Subscription Manifest

| "added in version" 1.0.0 of theforeman.foreman"

Authors: Sean O'Keeffe (@sean797)

Install collection

Install with ansible-galaxy collection install theforeman.foreman:==4.0.0


Add to requirements.yml

  collections:
    - name: theforeman.foreman
      version: 4.0.0

Description

Download and modify a Red Hat Satellite Subscription Manifest

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create foreman.example.com Manifest and add 7 sub
  theforeman.foreman.redhat_manifest:
    name: "foreman.example.com"
    username: "john-smith"
    password: "changeme"
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    quantity: 7
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure my manifest has 10 of one subs in it and export
  theforeman.foreman.redhat_manifest:
    uuid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
    username: john-smith
    password: changeme
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    quantity: 10
    path: /root/manifest.zip
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove all of one subs from foreman.example.com
  theforeman.foreman.redhat_manifest:
    name: foreman.example.com
    username: john-smith
    password: changeme
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    pool_state: absent

Inputs

    
name:
    description:
    - Manifest Name
    type: str

path:
    description:
    - path to export the manifest
    type: path

uuid:
    description:
    - Manifest uuid
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Manifest state
    type: str

portal:
    default: https://subscription.rhsm.redhat.com
    description:
    - Red Hat Portal subscription access address
    type: str

pool_id:
    description:
    - Subscription pool_id
    type: str

password:
    description:
    - Red Hat Portal password
    required: true
    type: str

quantity:
    default: 1
    description:
    - quantity of pool_id Subscriptions
    type: int

username:
    description:
    - Red Hat Portal username
    required: true
    type: str

pool_state:
    choices:
    - present
    - absent
    default: present
    description:
    - Subscription state
    type: str

validate_certs:
    default: true
    description:
    - Validate Portal SSL
    type: bool

content_access_mode:
    choices:
    - org_environment
    - entitlement
    default: entitlement
    description:
    - Content Access Mode of the Subscription Manifest.
    - Setting I(content_access_mode=org_enviroment) enables Simple Content Access.
    type: str

Outputs

uuid:
  description: Manifest UUID
  returned: success
  sample: 5349d1d0-5bda-480a-b7bd-ff41e2c29e03
  type: str
  version_added: 3.8.0
  version_added_collection: theforeman.foreman