In my yml I have this defined.

   1. - name: "pull image to force update if ImageTag=latest"
   2. shell: "docker pull {{ image }}" 
   3. when: "{{ ImageTag == latest }}" 

but I get this error when executing. I know that I could use ignore_errors 
but that doesn't seem like the right thing to do here. I would expect this 
to evaluate as not true and move on to the next task in the playbook. Any 
tips?

FAILED! => {"failed": true, "msg": "The conditional check '{{ ImageTag == 
latest }}' failed.

-- 
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/dc63eeee-2e3e-4632-8837-a1bb06586c15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to