Greetings. I'm running into something weird with vars_files and I thought I would ask the list if it's a bug I should file or if I am just doing something wrong. ;)
I had:
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- $private/vars.yml
- $vars/$ansible_distributiion.yml
and private and vars were both defined in global.yml and all worked.
Switching to new syntax:
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- "{{ vars }}/{{ ansible_distribution }}.yml"
results in the last vars file never loading. If I replace {{ vars }} by
the path it loads fine. If I replace the {{ ansible_distribution }}with
a hard coded one it loads ok. It's like it's not expanding multiple
variables in the same import line?
As a side note, at some points I see it mentioning that the distro vars
file is being imported, but not other times. When does ansible-playbook
note "importing ..." ?
Thanks for any thoughts...
kevin
signature.asc
Description: PGP signature
