assert - Fail with custom message

Author:Michael DeHaan

Synopsis

New in version 1.5.

This module asserts that a given expression is true and can be a simpler alternative to the ‘fail’ module in some cases.

Options

parameter required default choices comments
that yes
    A string expression of the same form that can be passed to the 'when' statement

    Examples


    - assert: ansible_os_family != "RedHat"
    - assert: "'foo' in some_command_result.stdout"
    

    Table Of Contents

    Previous topic

    accelerate - Enable accelerated mode on remote node

    Next topic

    debug - Print statements during execution