Documentation
PLEASE NOTE: This document applies to latest version and not to the latest stable release v3.0
Documentation for other releases can be found by using the version selector in the top right of any doc page.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