Documentation
meta
Execute meta-actions during task execution.
This module provides special actions that control the execution flow, such as flushing handlers.
Attributes
check_mode:
support: full
Parameters
| Parameter | Required | Type | Values | Description |
|---|---|---|---|---|
| action | true | string | flush_handlers, exit | The meta action to perform |
| code | false | integer | 0-255 | Exit status when action is exit (default: 0). Templated strings like "{{ rc }}" are accepted. |
Example
- name: Flush handlers before continuing
meta:
action: flush_handlers
- name: Exit with an application-specific status
meta:
action: exit
code: 2