You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/set_fact/set_fact_empty_str_key.yml

16 lines
334 B
YAML

- name: Test set_fact for empty string as a key
hosts: testhost
gather_facts: no
vars:
value: 1
tasks:
- name: Define fact with key as an empty string
set_fact:
foo:
"": "bar{{ value }}"
- name: Verify the parsed value of the key
assert:
that:
- foo == {"":"bar1"}