Yup reducing the entries and combining the conditional with setting the 
variable worked perfectly...
 (plus reformatting)

Here's an example from my group_vars/RedHat file which sets the syslog 
variable differently dependent on whether the RHEL version is less than six 
or six or greater.

syslog: "{% if ansible_distribution_version|truncate(1,true,'') >= '6' 
%}rsyslog{% else %}syslog{% endif %}"

Adam

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to