Here's what I ended up with in my group_vars file...
syslog_RedHat_5: syslog
syslogd_RedHat_5: syslog
syslog_RedHat_6: rsyslog
syslogd_RedHat_6: rsyslog
syslog: "{% if ansible_distribution_version|truncate(1,true,'') >= '6' %}{{
sysl
og_RedHat_6 }}{% else %}{{ syslog_RedHat_5 }}{% endif %}"
syslogd: "{% if ansible_distribution_version|truncate(1,true,'') >= '6'
%}{{ sys
logd_RedHat_6 }}{% else %}{{ syslogd_RedHat_5 }}{% endif %}"
Of course I could remove the top four variables and just set the values
properly using the Jinja2 conditionals below... I probably will clean that
up in my next pass, but it was a slowly evolving solution...
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.