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>`

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b266addb-b28e-4aeb-b7da-0ce82f4081ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to