New in version 1.5.
Parameter |
Choices/Defaults |
Comments |
---|---|---|
msg
|
|
The customized message used for a failing assertion
|
that
required |
|
A string expression of the same form that can be passed to the 'when' statement
Alternatively, a list of string expressions
|
- assert: { that: "ansible_os_family != 'RedHat'" }
- assert:
that:
- "'foo' in some_command_result.stdout"
- "number_of_the_counting == 3"
- assert:
that:
- "my_param <= 100"
- "my_param >= 0"
msg: "'my_param' must be between 0 and 100"
This module is flagged as stableinterface which means that the maintainers for this module guarantee that no backward incompatible interface changes will be made.
For more information about Red Hat’s support of this module, please refer to this Knowledge Base article
Hint
If you notice any issues in this documentation you can edit this document to improve it.