assert
Collection: builtin
Full Name: assert
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage assert
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| that | list | yes | A list of strings, each should be a test expression | |
| fail_msg | string | The customized message used when the assertion fails | ||
| success_msg | string | The customized message used when the assertion succeeds | ||
| quiet | bool | false | Set this to true to avoid verbose output |
Example
- name: Example assert task
assert:
that: <your_that>