Hi John
Thank for your reply, do you mean quoting like this:
---
- hosts: localhost
vars:
record:
field1: 1
field2: "{{field1}}"
tasks:
- name: This one does not work
debug: msg="{{record.field2}}"
...
I still get error:
fatal: [localhost]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: {u'field2': u'{{field1}}', u'field1': 1}: 'field1' is undefined\n\nThe error appears to have been in 'xxxxx.yml': line 8, column 6, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: This one does not work\n ^ here\n"}