title: Dynamic File names in vars_files with inventory variables
body: <p>Following is simple playbook</p>
  
  <pre><code>- name: Create VM and associated resources
    hosts: linux
    connection: local
    vars_files:
      - vars_files/{{ env_name }}_vars.yml
      - vars_files/base_vars.yml
    roles:
      - linux
  </code></pre>
  
  <p>And my inventory File is TEST.yml</p>
  
  <pre><code>all:
    vars:
      env_name: TEST
  linux:
    hosts:
      TEST-SERVER:
        ansible_host: 10.10.10.10
  </code></pre>
  
  <p>When I run the playbook ansible-playbook -vvv plabook_test.yml, I am receiving the following error. </p>
  
  <p><strong>skipping vars_file 'vars_files/{{ env_name }}_vars.yml' due to an undefined variable</strong></p>
  
  <p>Any Idea how can I used a variable from my inventory in the file name?</p>
  
  <p>Any help is greatly appreciated.</p>
  
  <p>Thanks,</p>