title: Ansible syntax to run task based on host condition
body: <p>I'm wondering if is it possible to have this kind of syntax to run a playbook based on host requirement : </p>
  
  <ul>
  <li><p>include: tomcat8_for_assc_team.yml
  when:
  hostgroup: assc</p></li>
  <li><p>include: tomcat8_for_oab_team.yml
  when:
  hostgroup: oab</p></li>
  </ul>
  
  <p>In my Inventories files :</p>
  
  <p>[assc]
  vm1
  vm2 
  etc</p>
  
  <p>[oab]
  vm4
  vm5
  etc</p>