title: select group_var variable file in top level playbook
body: <p>I have defined all my variables in <code>group_vars/all/vars_file.yml</code> and my playbook is as below:</p>
  
  <pre><code>---
  # Top level play site.yml
  - hosts: webclient
  
    roles:
      - common
      - nginx
      - nvm
      - deploy_web_client
  
  - hosts: appserver
    roles:
      - common
      - gradle
      - tomcat
      - deploy_sb_war
  </code></pre>
  
  <p>Now I have 3 environments dev / staging / production. Depending upon the environment i used to change the vars_file.yml under group_vars and then run the ansible-play.</p>
  
  <p>Is there any way I can keep 3 files like "group_vars/dev" , "group_vars/staging", "group_vars/production" and specify it in my main site.yml</p>
  
  <p>I have 3 inventory files as below, and depending upon the environment during ansible-play i specify the inventory file name</p>
  
  <pre><code>[webclient]
  10.20.30.40
  
  [appserver]
  10.20.30.41
  </code></pre>