Hello,
I have a problem with conditional variable imports. I am trying to set a variable based on operatingsystem release. For ‘Solaris10’ I want one value and for all others I want another another value.
In this example I have two servers:
$ ansible server1 -m setup | grep -E 'ansible_os_family|ansible_distribution_version' "ansible_distribution_version": "10", "ansible_os_family": "Solaris", $ ansible server2 -m setup | grep -E 'ansible_os_family|ansible_distribution_version' "ansible_distribution_version": "11.2", "ansible_os_family": "Solaris",
I am trying to mimic the construct from this example: http://docs.ansible.com/ansible/playbooks_conditionals.html#conditional-imports
`
$ cat vars/defaults.yml