Hi.

After a lot of reading about variable inheritance in ansible, there's still 
something I cannot properly grasp...
I hope some folks in here could enlighten me :-)

So. I have a "foobar" role with some default variables set under 
defaults/main.yml.
So far, so good.
But I would like some of these default variables to be for e.g. 
OS-dependant.
I can easily achieve that using vars or with_first_found along with 
ansible_os_family.
But if I do that, then I am not able to override these variables using 
group_vars (/etc/ansible/group_vars/mygroup (like I am able to override the 
variables set in defaults/main.yml). I do not want to have to pass 
variables directly in the inventory file.

I am sure I am missing something stupid...
Thanks in advance.

-- 
Antoine

-- 
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/948d5729-6b1c-4acb-9e13-870fa5c4b5a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to