Skip to content

tower/variables

AWX / Tower data variables for Hosts

This parameter defines an untyped object that gets passed to AWX / Tower as the variables field of a job reqister request or curl call. The object can any valid JSON or YAML. It will be converted to a JSON string for passing in the call.

An example yaml format:

YAML
var1: "string"
var2: 33
var3:
  - arr-item1
  - arr-item2
var4:
  mapfield1: "string"
  mapfield2: true

There is no default value specified.

When used with the tower-invoke-curl task, this object is serialized to JSON and passed as the full HTTP POST body via --data-raw (Linux/darwin) or -Body (Windows PowerShell).

Objects that Reference tower/variables

Objects used by tower/variables

Not used in current content packs