Editing in the designer

Draw a workflow, and try it without running anything

  1. The Workflows section
  2. The graph
  3. Adding a node
  4. Where a node runs
  5. Editing a node
  6. Trying it out

The Workflows section

Designer > Workflows lists the workflow files in a file explorer, with the YAML, Visual and Preview tabs of every designer section.

  • The + button in the toolbar creates a workflow file, with an empty workflow to start from.
  • YAML shows the file as it is written. Comments and the order of the keys are kept by the other tabs too.
  • Visual draws each workflow of the file as a graph, with its name and description above it. A file with two workflows shows both, one under the other.
  • Preview is a dry run of the workflow: see Trying it out.

Problems are listed above the graph, each with a link that opens the YAML on its line: a link to a node that does not exist, a loop, a playbook, inventory, credential, runner or repository that the designer does not know.


The graph

The graph reads from left to right, from START to the last nodes. Each node shows its identifier and, under it, what it runs; the links are coloured by what makes them fire, as the legend inside the graph says: on success, on failure, always.

  • Click START to add a first node: a node without a parent, which runs as soon as the workflow starts.
  • Click a node to edit it.
  • Click a link to change what makes it fire, or to remove it.

Adding a node

A new node is added with a wizard: New node on success, New node on failure or New node always on an existing node, or START for a first one.

  1. What it runs: the node’s identifier, Runs (what kind of node it is and, for a playbook node, where it runs) and what it runs: a playbook or a template or job, a workflow, an approval’s name and timeout, or a repository. See Where a node runs.
  2. How it runs: the run settings: the inventory, the credentials, the limit, the tags, the verbosity, check and diff mode, the condition (Runs when) and Values from (see the workflow file).
  3. Where it goes: the node it runs after, and on what.

Create adds the node to the YAML.


Where a node runs

Runs says what a node runs and where, in one list: Playbook on the RTE, Template on AWX, Template on Semaphore, Job on Rundeck, Job on Jenkins, then Workflow, Approval and Repository pull.

Runs The field under it Runner
Playbook on the RTE Playbook: a playbook of the designer The default RTE, or an RTE runner by name
Template on AWX (AAP and Ascender included) Template: the template’s name, typed the AWX runners, each with its flavour
Template on Semaphore Template: the template’s name, typed the Semaphore runners
Job on Rundeck or Job on Jenkins Job: the job’s name, typed the Rundeck or Jenkins runners
  • Playbook on the RTE is always offered; the others only when the instance has a runner of that type.
  • Runner lists only the runners of that type, the default one marked and preselected (or the first by name).
  • Picking another place clears what the node runs, so it is chosen again.
  • A node whose runner the designer does not know shows Template or job on that runner.

The workflow file does not change: such a node is a job_template node with a runner: (see the workflow file).


Editing a node

Clicking a node opens its dialog, in four tabs:

Tab What it holds
What it runs The identifier, Runs, what it runs and, for a playbook node, the runner
How it runs The run settings; credentials are picked from a list, each added with +
Runs after The links into the node, and All parents must converge
Runs next The links out of it, with Link to an existing node: and Link to a new node:

Show in YAML opens the YAML on the node, and Remove node removes it with its links. Every change is written to the YAML at once; Save saves the file.


Trying it out

The Preview tab plays the workflow through without launching anything, by AWX’s rules.

Every node starts as a success. Click a node to make it fail, and click it again to make it succeed; the graph then shows which nodes would run, which would not run, and whether the workflow would fail. Reset makes every node succeed again.