theforeman.foreman.redhat_manifest module – Interact with a Red Hat Satellite Subscription Manifest
Note
This module is part of the theforeman.foreman collection (version 4.2.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install theforeman.foreman
.
To use it in a playbook, specify: theforeman.foreman.redhat_manifest
.
New in theforeman.foreman 1.0.0
Synopsis
Download and modify a Red Hat Satellite Subscription Manifest
Parameters
Parameter |
Comments |
---|---|
Content Access Mode of the Subscription Manifest. Setting content_access_mode=org_enviroment enables Simple Content Access. Choices:
|
|
Manifest Name |
|
Red Hat Portal password |
|
path to export the manifest |
|
Subscription pool_id |
|
Subscription state Choices:
|
|
Red Hat Portal subscription access address Default: |
|
quantity of pool_id Subscriptions Default: |
|
Manifest state Choices:
|
|
Red Hat Portal username |
|
Manifest uuid |
|
Validate Portal SSL Choices:
|
Examples
- 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
- 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
- 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
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Manifest UUID Returned: success Sample: |