I havent managed to understand my problem but I have been able to use this
workaround using the "include_vars" module instead:
---
- hosts: server1:server2
tasks:
- include_vars: "{{ item }}"
with_first_found:
- "vars/{{ ansible_os_family }}{{ ansible_distribution_version }}.yml"
- "vars/defaults.yml"
- debug: msg={{ homeprefix }}
/ Thomas
>
--
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/d1927f37-0cf5-45ca-a7e5-e62b816b6577%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.