title: Using vars_files conditionally in ansible playbook
body: <p>What I am trying to achieve is something like following</p>
  <p>vars_files:
  - &quot;{{ 'vars/vars.yml'  if condition==True else 'vars/vars1.yml' }}&quot;</p>
  <p>Can someone help me with the correct syntax?</p>