Documentation

    PLEASE NOTE: This document applies to v2.2 version and not to the latest stable release v2.9

    Documentation for other releases can be found by using the version selector in the left bottom of any doc page.

    assert

    Assert given expressions are true.

    Attributes

    check_mode:
      support: always
    

    Parameters

    Parameter Required Type Values Description
    that true array   A list of string expressions of the same form that can be passed to the when statement.

    Example

    - assert:
        that:
          - boo is defined
          - 1 + 1 == 2
          - env.MY_VAR is defined