title: Using same variable name in separate group variable in Ansible inventory
body: <p>I am using the same name of the variables within separate variable groups within an inventory file.</p>
  
  <p>For example:</p>
  
  <pre><code>###hosts file####
  [GROUP1]
  var1  127.0.0.1
  var2  127.0.0.1
  [GROUP2]
  var1  127.1.0.1
  var2  127.1.0.1
  </code></pre>
  
  <p>I would like know to apply my playbook on the var1 of GROUP2. how can I do it ?
  For example:</p>
  
  <pre><code>- hosts: GROUP2.var1
    become: root
    gather_facts: no
    remote_user: user
  </code></pre>