Could a value refer another key’s value as variable

Hi,

I would like to do something in playbook like

myapp:
version: 1.2
path: xxxx_{{version}

I want to refer another key’s value to devise new value. It does not work.

Is it possible at all?

Regards,

David

I do this all the time, but I always quote the RHS of each assignment. NOTE also that you are missing a closing brace in your example code.

John

Hi John

Thank for your reply, do you mean quoting like this:

Does field2’s value display correctly if you use the full path to the other variable?

Hi Joanna,

I tried that as well, it still did not work, it will fail with:

…recursive loop detected in template string: {{record.field1}}"}

David