Ansible Module ansible.builtin.assert: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
* [[Ansible Concepts#ansible.builtin.assert|Ansible Concepts]] | * [[Ansible Concepts#ansible.builtin.assert|Ansible Concepts]] | ||
=Overview= | =Overview= | ||
This module asserts that given expressions are true with an optional custom message. | |||
<syntaxhighlight lang='yaml'> | <syntaxhighlight lang='yaml'> | ||
- name: ... | - name: ... | ||
Line 11: | Line 13: | ||
success_msg: | success_msg: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Module Parameters= | |||
==<tt>that</tt>=== | |||
A list of string expressions of the same form that can be passed to the <code>[[Ansible_Concepts#when_-_Conditional_Task_Execution|when]]</code> statement. |
Revision as of 06:03, 5 July 2021
External
Internal
Overview
This module asserts that given expressions are true with an optional custom message.
- name: ...
assert:
that:
fail_msg:
success_msg:
Module Parameters
that=
A list of string expressions of the same form that can be passed to the when
statement.