We have two variable files, the first files carries constant and the second variables from the output generated.
firstfile.yml
---
prefix: test
secondfile.yml
---
test_variable: 12345
In we are want to call test_variable, but the formation of the variable should be concatenation from firstfile.yml and not `"{{ test_variable }}"`
Example:
- hosts: localhost
connection: local
vars:
constants: firstfile.yml
variables: seconfile.yml
vars_files:
- [ "{{ constants }}, {{ variables }}"
tasks:
name: test_name
field: "{{ prefix }}_variable"
Error: `'test_variable' does not exist</Message></Error></Errors>`