Documentation

    set_vars

    This module allows setting new variables.

    Attributes

    check_mode:
      support: always
    

    Parameters

    Parameter Required Type Values Description
    key_value true map   This module takes key/value pairs and save un current Vars context.

    Example

    - set_vars:
        foo: boo
        buu:
          - 1
          - 2
          - 3
        zoo:
          suu: yea
    
    - assert:
        that:
          - foo == 'boo'
          - buu[2] == 3
          - zoo.suu == 'yea'