Ansible With_Item as Variable

Hi All,

Could do with some Help with this issue:

I am trying to get the Powerstate of a Virtual Machine and power off when powerstate != poweroff
and looking at a way to copy the copy the Cluster variable to a Text File: