Reference - Actions

Playbook actions are required in each step.

They are the automated procedures your task carries out.

Summary

Actions contains a list of built-in or plugin actions the step will run.

A step can contain as many of these actions as you need.

Each individual action in the list is a dictionary.

Required Keys

action

The built-in or plugin action to run.

Optional Keys

save

Store action output as a dynamic variable.

load

Supply dynamic or static variables to actions.

when

Perform action if a condition is met.

for_each

Perform the action for each item in a list.

Offers more functionality than the legacy sequence key.

New in PPA version 2.10.0!

sequence (legacy)

Perform the action for each item in a list.

This was deprecated in PPA version 2.10.0 in favour of for_each!

until (legacy)

Perform the action until a condition is met.

This was deprecated in PPA version 2.10.0 in favour of using while in a step!