File: main.yml

package info (click to toggle)
ansible-core 2.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 32,752 kB
  • sloc: python: 181,000; cs: 4,929; sh: 4,611; xml: 34; makefile: 21
file content (41 lines) | stat: -rw-r--r-- 1,249 bytes parent folder | download | duplicates (3)
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