I would like to add a dict variable when looping with with_items
like this:
set_fact:
item.template: "base"
when: item.template is not defined
with_items: vHosts
But it seems to write to an wrong dictionary, i have then {"ansible_facts": {"item.template": "base"}, "item": {...}}
.
trying vHosts['item']['template']
doesn't work either.