volanja/ansible_spec

Nested variables do not expand

alanraison opened this issue · 3 comments

If an Ansible variable is declared in terms of another variable; for example:

user: foo
base_folder: /home/{{user}}/bar

Then the property expansion of 'base_folder' (e.g. file(property['base_folder'])) only resolves one level, i.e. to /home/{{user}}/bar when ansible itself would resolve this to /home/foo/bar.

I am using ansible_spec 0.2.17

This is the single biggest problem of this gem as it renders it useless for complex playbooks. (The other was ansible-vault support but I've created a pull request for this already).

I've added this feature and opened a pull request: #117

I released v0.2.24 (merged #117)