Hi,

The 1.5.4 change to stop expanding 'facts' variables in 'vars_files' paths 
has just hit me (I know I'm behind, running of Scientific Linux 6 so 
updates are slow!).

I'd just like to point out that the web documentation needs to be updated: 
specifically the 'vars_files' example in the 'Conditional Imports' section 
still uses "{{ansible_os_family}}" in the path:

http://docs.ansible.com/playbooks_variables.html#conditional-imports


I'd like to also ask for some advice on how to update my playbooks now to 
deal with the new behaviour.

I know there's a note saying that the feature isn't used that often, and 
points you to the 'group_by' module, but to be honest the examples on the 
group_by page make no sense to me 
(http://docs.ansible.com/group_by_module.html).

This is what I have (and worked prior to 1.5.4):

  vars_files:
    - ../vars/global.yml
    - ../vars/{{ansible_distribution}}.yml

(and so I have a 'vars/Ubuntu.yml' and 'vars/Scientific.yml' etc where I 
put a couple of OS-specific vars).

I guess I'll need to reorganise things and maybe use 
{{ansible_distrubution}} more, but if anyone has an example of how they 
migrated, I'd appreciate it.

Thanks,
Paddy

-- 
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/2b8645fe-0244-461f-9159-02c403f918c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to