Yes, I can actually do as you say and not go through a text file. The 
purpose of this playbook is to do nothing if the right version is installed 
and otherwise install the right one. 

Something like.

If {{ result }} != "Version 5" 
then 
install Version 5
fi 

But I don't know how to isolate and test the string "Version: x" directly 
in Ansible

-- 
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/2555986d-4ac6-4284-9e27-d4f437657687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to