.. Document meta :orphan: .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: .. role:: ansible-attribute-support-label .. role:: ansible-attribute-support-property .. role:: ansible-attribute-support-full .. role:: ansible-attribute-support-partial .. role:: ansible-attribute-support-none .. role:: ansible-attribute-support-na .. role:: ansible-option-type .. role:: ansible-option-elements .. role:: ansible-option-required .. role:: ansible-option-versionadded .. role:: ansible-option-aliases .. role:: ansible-option-choices .. role:: ansible-option-choices-default-mark .. role:: ansible-option-default-bold .. role:: ansible-option-configuration .. role:: ansible-option-returned-bold .. role:: ansible-option-sample-bold .. Anchors .. _ansible_collections.middleware_automation.common.product_download_module: .. Anchors: short name for ansible.builtin .. Title product_download -- Downloads products from the JBoss Network API. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This module is part of the `middleware_automation.common collection `_. To install it, use: :code:`ansible-galaxy collection install middleware\_automation.common`. You need further requirements to be able to use this module, see :ref:`Requirements ` for details. To use it in a playbook, specify: :code:`middleware_automation.common.product_download`. .. version_added .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - Downloads products from the JBoss Network API. .. Aliases .. Requirements .. _ansible_collections.middleware_automation.common.product_download_module_requirements: Requirements ------------ The below requirements are needed on the host that executes this module. - requests .. Options Parameters ---------- .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Parameter - Comments * - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-api_url: .. rst-class:: ansible-option-title **api_url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Address of the JBoss Network API. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"https://jbossnetwork.api.redhat.com"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-attr: .. _ansible_collections.middleware_automation.common.product_download_module__parameter-attributes: .. rst-class:: ansible-option-title **attributes** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: attr` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The attributes the resulting filesystem object should have. To get supported flags look at the man page for \ :emphasis:`chattr`\ on the target system. This string should contain the attributes in the same order as the one displayed by \ :emphasis:`lsattr`\ . The \ :literal:`=`\ operator is assumed as default, otherwise \ :literal:`+`\ or \ :literal:`-`\ operators need to be included in the string. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-client_id: .. rst-class:: ansible-option-title **client_id** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Client ID associated with to download a product from the JBoss Network API. If value not set, will try environment variable \ :literal:`REDHAT\_PRODUCT\_DOWNLOAD\_CLIENT\_ID`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-client_secret: .. rst-class:: ansible-option-title **client_secret** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Client Secret associated with to download a product from the JBoss Network API. If value not set, will try environment variable \ :literal:`REDHAT\_PRODUCT\_DOWNLOAD\_CLIENT\_SECRET`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-dest: .. rst-class:: ansible-option-title **dest** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` / :ansible-option-required:`required` .. raw:: html
- .. raw:: html
Absolute . .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-force: .. rst-class:: ansible-option-title **force** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
If \ :literal:`true`\ and \ :literal:`dest`\ is not a directory, will download the file every time and replace the file if the contents change. If \ :literal:`false`\ , the file will only be downloaded if the destination does not exist. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-group: .. rst-class:: ansible-option-title **group** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Name of the group that should own the filesystem object, as would be fed to \ :emphasis:`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. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-mode: .. rst-class:: ansible-option-title **mode** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`any` .. raw:: html
- .. raw:: html
The permissions the resulting filesystem object should have. For those used to \ :emphasis:`/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, \ :literal:`'644'`\ or \ :literal:`'1777'`\ ) so Ansible receives a string and can do its own conversion from string into number. Adding a leading zero (for example, \ :literal:`0755`\ ) works sometimes, but can fail in loops and some other circumstances. 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, \ :literal:`u+rwx`\ or \ :literal:`u=rw,g=r,o=r`\ ). If \ :literal:`mode`\ is not specified and the destination filesystem object \ :strong:`does not`\ exist, the default \ :literal:`umask`\ on the system will be used when setting the mode for the newly created filesystem object. If \ :literal:`mode`\ is not specified and the destination filesystem object \ :strong:`does`\ exist, the mode of the existing filesystem object will be used. Specifying \ :literal:`mode`\ is the best way to ensure filesystem objects are created with the correct permissions. See CVE-2020-1736 for further details. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-owner: .. rst-class:: ansible-option-title **owner** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Name of the user that should own the filesystem object, as would be fed to \ :emphasis:`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. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-product_category: .. rst-class:: ansible-option-title **product_category** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Type of the Product Category .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-product_id: .. rst-class:: ansible-option-title **product_id** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Product Id for the Redhat customer portal .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-product_type: .. rst-class:: ansible-option-title **product_type** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Type of the Product .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-product_version: .. rst-class:: ansible-option-title **product_version** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Product Version to be downloaded. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-selevel: .. rst-class:: ansible-option-title **selevel** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The level part of the SELinux filesystem object context. This is the MLS/MCS attribute, sometimes known as the \ :literal:`range`\ . When set to \ :literal:`\_default`\ , it will use the \ :literal:`level`\ portion of the policy if available. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-serole: .. rst-class:: ansible-option-title **serole** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The role part of the SELinux filesystem object context. When set to \ :literal:`\_default`\ , it will use the \ :literal:`role`\ portion of the policy if available. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-setype: .. rst-class:: ansible-option-title **setype** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The type part of the SELinux filesystem object context. When set to \ :literal:`\_default`\ , it will use the \ :literal:`type`\ portion of the policy if available. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-seuser: .. rst-class:: ansible-option-title **seuser** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The user part of the SELinux filesystem object context. By default it uses the \ :literal:`system`\ policy, where applicable. When set to \ :literal:`\_default`\ , it will use the \ :literal:`user`\ portion of the policy if available. .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-sso_url: .. rst-class:: ansible-option-title **sso_url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Address of the Red Hat SSO Server. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"https://sso.redhat.com"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-unsafe_writes: .. rst-class:: ansible-option-title **unsafe_writes** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
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. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__parameter-validate_certs: .. rst-class:: ansible-option-title **validate_certs** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
If \ :literal:`false`\ , SSL certificates will not be validated. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` .. raw:: html
.. Attributes .. Notes .. Seealso .. Examples Examples -------- .. code-block:: yaml+jinja - 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 .. Facts .. Return values Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Key - Description * - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-dest: .. rst-class:: ansible-option-title **dest** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
destination file/path .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"/path/to/file.txt"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-failed: .. rst-class:: ansible-option-title **failed** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
whether an error occurred downloading the resource .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`false` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-gid: .. rst-class:: ansible-option-title **gid** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
group id of the file .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`100` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-group: .. rst-class:: ansible-option-title **group** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
group of the file .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"httpd"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-md5sum: .. rst-class:: ansible-option-title **md5sum** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
md5 checksum of the file after download .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` when supported .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"2a5aeecc61dc98c4d780b14b330e3282"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-mode: .. rst-class:: ansible-option-title **mode** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
permissions of the target .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"0644"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-msg: .. rst-class:: ansible-option-title **msg** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
the HTTP message from the request .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"OK (unknown bytes)"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-owner: .. rst-class:: ansible-option-title **owner** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
owner of the file .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"httpd"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-size: .. rst-class:: ansible-option-title **size** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
size of the target .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`1220` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-state: .. rst-class:: ansible-option-title **state** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
state of the target .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`"file"` .. raw:: html
* - .. raw:: html
.. _ansible_collections.middleware_automation.common.product_download_module__return-uid: .. rst-class:: ansible-option-title **uid** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
owner id of the file, after execution .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`100` .. raw:: html
.. Status (Presently only deprecated) .. Authors Authors ~~~~~~~ - Andrew Block (@sabre1041) .. Extra links .. Parsing errors