1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
- echo_modern:
data: "{{ data }}"
register: result
- assert:
that:
- result.data.date | type_debug == 'date'
- result.data.time | type_debug == 'time'
- result.data.datetime | type_debug == 'datetime'
- result.data.int | type_debug == 'int'
- result.data.float | type_debug == 'float'
- result.data.str | type_debug == 'str'
- result.data.bool | type_debug == 'bool'
- result.data.none | type_debug == 'NoneType'
- result.data.dict | type_debug == 'dict'
- result.data.list | type_debug == 'list'
- echo_legacy:
data: "{{ data }}"
register: result
- assert:
that:
- result.data.date | type_debug == 'str'
- result.data.time | type_debug == 'str'
- result.data.datetime | type_debug == 'str'
- result.data.int | type_debug == 'int'
- result.data.float | type_debug == 'float'
- result.data.str | type_debug == 'str'
- result.data.bool | type_debug == 'bool'
- result.data.none | type_debug == 'NoneType'
- result.data.dict | type_debug == 'dict'
- result.data.list | type_debug == 'list'
- echo_unspecified:
data: "{{ data }}"
register: unspecified
- assert:
that:
- unspecified == result
|