2 problems:
too many moustaches (all conditionals aka *when: have templating implied)
when: ansible_net_version in ios_image1.stdout[0]
from the expression above, ios_image1 does not have stdout, it is a
string itself, you seem to be confusing it with a result dictionary
when: ansible_net_version in ios_image1
--
----------
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CACVha7c07kW%3DrCqWGag1ieac74tGbNBPFCTOU4A5hJ2QNpY2nw%40mail.gmail.com.