product_download – Downloads products from the JBoss Network 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_download
.
Synopsis
Downloads products from the JBoss Network API.
Parameters
Parameter |
Comments |
---|---|
Address of the JBoss Network API. Default: |
|
The attributes the resulting filesystem object should have. To get supported flags look at the man page for chattr on the target system. This string should contain the attributes in the same order as the one displayed by lsattr. The |
|
Client ID associated with to download a product from the JBoss Network API. If value not set, will try environment variable |
|
Client Secret associated with to download a product from the JBoss Network API. If value not set, will try environment variable |
|
Absolute . |
|
If Choices:
|
|
Name of the group that should own the filesystem object, as would be fed to chown. When left unspecified, it uses the current group of the current user unless you are root, in which case it can preserve the previous ownership. |
|
The permissions the resulting filesystem object should have. For those used to /usr/bin/chmod remember that modes are actually octal numbers. You must give Ansible enough information to parse them correctly. For consistent results, quote octal numbers (for example, Giving Ansible a number without following either of these rules will end up with a decimal number which will have unexpected results. As of Ansible 1.8, the mode may be specified as a symbolic mode (for example, If If Specifying |
|
Name of the user that should own the filesystem object, as would be fed to chown. When left unspecified, it uses the current user unless you are root, in which case it can preserve the previous ownership. Specifying a numeric username will be assumed to be a user ID and not a username. Avoid numeric usernames to avoid this confusion. |
|
Type of the Product Category |
|
Product Id for the Redhat customer portal |
|
Type of the Product |
|
Product Version to be downloaded. |
|
The level part of the SELinux filesystem object context. This is the MLS/MCS attribute, sometimes known as the When set to |
|
The role part of the SELinux filesystem object context. When set to |
|
The type part of the SELinux filesystem object context. When set to |
|
The user part of the SELinux filesystem object context. By default it uses the When set to |
|
Address of the Red Hat SSO Server. Default: |
|
Influence when to use atomic operation to prevent data corruption or inconsistent reads from the target filesystem object. By default this module uses atomic operations to prevent data corruption or inconsistent reads from the target filesystem objects, but sometimes systems are configured or just broken in ways that prevent this. One example is docker mounted filesystem objects, which cannot be updated atomically from inside the container and can only be written in an unsafe manner. This option allows Ansible to fall back to unsafe methods of updating filesystem objects when atomic operations fail (however, it doesn't force Ansible to perform unsafe writes). IMPORTANT! Unsafe writes are subject to race conditions and can lead to data corruption. Choices:
|
|
If Choices:
|
Examples
- name: Download Red Hat Product
middleware_automation.common.product_download:
client_id: 123e4567-e89b-12d3-a456-426614174000
client_secret: 0mpkY0i8IdIRWbk6rLXBlf5Jkqq8i4nW
dest: /tmp/eap-connectors.zip
product_id: 12345
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
destination file/path Returned: success Sample: |
|
whether an error occurred downloading the resource Returned: success Sample: |
|
group id of the file Returned: success Sample: |
|
group of the file Returned: success Sample: |
|
md5 checksum of the file after download Returned: when supported Sample: |
|
permissions of the target Returned: success Sample: |
|
the HTTP message from the request Returned: always Sample: |
|
owner of the file Returned: success Sample: |
|
size of the target Returned: success Sample: |
|
state of the target Returned: success Sample: |
|
owner id of the file, after execution Returned: success Sample: |