Debian Codegraph @

test/integration/targets/inventory_toml/playbook.yml

raw
1 - hosts: localhost
2 gather_facts: no
3 tasks:
4 - name: assert inventory var shapes
5 vars:
6 expected_offset_datetime: 2020-01-01T12:42:42-07:00
7 expected_local_datetime: 2020-01-01T12:42:42
8 expected_local_date: 2020-01-01
9 assert:
10 that:
11 - hostvars.host1.string_value == "hi mom"
12 - hostvars.host1.integer_value == 42
13 - hostvars.host1.float_value == 42.1
14 - hostvars.host1.boolean_value == false
15 - hostvars.host1.offset_datetime == expected_offset_datetime
16 - hostvars.host1.local_datetime == expected_local_datetime
17 - hostvars.host1.local_date == expected_local_date
18 - hostvars.host1.local_time == expected_local_datetime.time()
19 - hostvars.host1.array == [1,2,3]
20 - 'hostvars.host1.table == { "foo" : "bar" }'
21 - hostvars.host1.group_template_str == "i am a group level template"