A problem with using the virt module output as a registered variable for looping

I have the following simple task include file:

There's a nested dictionary inside the item that you're missing. I just
tried your playbook, but made this change

when: item.value.state is defined and item.value.state == 'running'

It worked for me then.

HI Dustin,

You are 100% right. Why I missed the obvious? :frowning: Time for more coffee :slight_smile:

Thanks!

– Zack