When running with the -v flag I was getting this:

TASK: [Set git_installed_version fact] 
****************************************
ok: [cld-lab0-cshort01] => {"ansible_facts": {"git_installed_version": 
"git_version_output.stdout_lines"}}

So clearly something wasn't right. I tried this:

    - name: Set git_installed_version fact
      set_fact: git_installed_version={{ git_version_output.stdout_lines }}
      tags: fact1

And then the output seemed to be close to desired:

TASK: [Set git_installed_version fact] 
****************************************
ok: [cld-lab0-cshort01] => {"ansible_facts": {"git_installed_version": 
"['2.3.2']"}}

My problem is the JSON'y format of that output. Is there a way to just get 
the output without the formatting?

-- 
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/5e7e89e0-e770-46b9-9e79-606877d97752%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to