Looking at the Conditional Imports section of the Advanced Playbook docs, I see this example
vars_files:
- "vars/common.yml"
- [ "vars/{{ ansible_os_family }}.yml", "vars/os_defaults.yml" ]
I need to differentiate between CentOS 5/6 and SLES 10/11. So, I'm thinking of something like;
vars_files:
- "vars/common.yml"
- [ "vars/{{ ansible_os_family }}-{{ ansible_distribution_version }}.yml", "vars/os_defaults.yml" ]
But, I only want to differentiate on the "major" version.
e.g. CentOS-5, CentOS-6, Suse-10, Suse-11
So, how would you suggest using the "major" version only here?
Thanks!
Dale