Ansible Module ansible.builtin.assert: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:


=Module Parameters=
=Module Parameters=
==<tt>that</tt>===
===<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.
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.