Option | Default | Description |
---|---|---|
when | always | Specify when other task(s) is/are executed. Possible values are accepted , rejected , failed , aborted , always . |
task | -- | Name of task(s) to be executed |
Note that
aborted
is not included inalways
. Tasks will only run onaborted
if specified.
run_task:
when: accepted
task: another-task-to-be-executed
run_task:
when:
- accepted
- rejected
task:
- another-task-to-be-executed
- third-task-to-be-executed