Trying to figure out if the following is possible.
I have a hash map e.g.
tools:
a:
foobar: 1
b:
barfoo: 3
- file: path=/some/dir/{{ item }} state=absent
with_items: contents.stdout_lines
when: item not in [[ list of tools keys ]]
I want [[ list of tools keys ]] to turn into [a,b] basically so the when clause could work. Any way to do this?