product_search – Searches products from the Red Hat Unified Downloads API.
Note
This module is part of the middleware_automation.common collection.
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 middleware_automation.common.
To use it in a playbook, specify: middleware_automation.common.product_search.
Synopsis
Searches products from the Red Hat Unified Downloads API.
Parameters
Parameter |
Comments |
|---|---|
Address of the Red Hat Unified Downloads API. Default: |
|
Client ID associated with to download a product from the Red Hat Unified Downloads API. If value not set, will try environment variable |
|
Client Secret associated with to download a product from the Red Hat Unified Downloads API. If value not set, will try environment variable |
|
Type of the Product Category |
|
Product Id for the Redhat customer portal |
|
Type of the Product |
|
Product Version to be downloaded. |
|
Address of the Red Hat SSO Server. Default: |
|
If Choices:
|
Examples
- name: Search Red Hat Products
middleware_automation.common.product_search:
client_id: 123e4567-e89b-12d3-a456-426614174000
client_secret: 0mpkY0i8IdIRWbk6rLXBlf5Jkqq8i4nW
product_category: webserver
product_version: 5.5
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The objects returned from the API Returned: success |
|
Type of product (array). Returned: success |
|
Description of the product. Returned: success |
|
URL where the product can be downloaded. Returned: success |
|
File name (may include subdirectory path). Returned: success |
|
id of the product. Returned: success |
|
Name of the product. Returned: success |
|
Product code (category). Returned: success |
|
SHA256 checksum of the product. Returned: success |
|
Title of the product. Returned: success |
|
Product version. Returned: success |
|
Product visibility. Returned: success |