Referencing variables within the same datastructure

Hi,

I’m trying to do the same as mentioned in this issue https://github.com/ansible/ansible/issues/4450 without success:

ansible:
foo: “value”
bar: “/tmp/{{ ansible.foo }}”

This causes the following error: recursive loop detected in template string.

I understand this is because I’m referencing a variable created in the same data structure, but Michael mentioned this was fixed on the devel branch 7 months ago, is there a way to accomplish this?

I’m running 1.5.5.

Yes, you simply can’t do this.

You can reference variables in another datastructure, however.