You're trying to compare a structure to a string. You probably meant
to use "git_installed_version" in your when conditional. Also, you
either need to quote the "{{ git_version }}" in the conditional so
that the string is quoted, or just leave it off entirely since it's
using 2 variables, no need to bring templating into it. You'll
probably want something like this:
- name: Dump git_installed_version to file
debug: msg="success"
when: git_installed_version == git_version
tags: dump
> --
> 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
ansible-proje...@googlegroups.com.
> To post to this group, send email to
ansible...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ansible-project/941d93cb-bb5a-4f08-a441-7a05d3e0055b%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.