Skip to content

tower/output-to-inventory

JSON response fields to store as inventory/tower/* params on the Machine

Each element should be the name of a top-level key in the AWX / Tower JSON response body returned by the tower-invoke-curl task.

After a successful POST, each listed field value is stored on the Machine object as a DRP adhoc Param named inventory/tower/<field> using:

drpcli machines set $RS_UUID param inventory/tower/ to

Default

Defaults to [id, url, status]. These three fields provide the launch- response audit trail and — critically — inventory/tower/id is required by the tower-invoke-curl resume flow (see tower/job-poll-resume).

An operator may add more fields to capture additional launch-response data. Removing id from the list is allowed but will cause any future tower/job-poll-resume=true operation on this machine to fail with an error directing the operator to either repopulate inventory/tower/id or start the job fresh.

Example to capture additional fields:

YAML
tower/output-to-inventory:
  - id
  - url
  - status
  - created
  - name

This results in the following adhoc Inventory params on the Machine:

Text Only
inventory/tower/id
inventory/tower/url
inventory/tower/status
inventory/tower/created
inventory/tower/name

If a listed field is missing from the JSON structure, the corresponding inventory Param is recorded with a value of NULL.

Objects that Reference tower/output-to-inventory

Objects used by tower/output-to-inventory

Not used in current content packs