not really, you probably want this: when: hostvars[inventory_hostname][item]['user']['state'] == 'present'
in yours you are conflating 'present' which is a string with variables and then trying to 'double interpolate' neither of which will work. ---------- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7eNBtiNq0EpU4Y5RN0a_Lge_tH3_aNP6OotZtONQtpfTQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
