title: How to create an Ansible group with children, excluding a subset group?
body: <p>I am using the Ansible <a href="http://docs.ansible.com/ansible/intro_dynamic_inventory.html#example-aws-ec2-external-inventory-script" rel="nofollow">EC2 Dynamic Inventory</a> script to auto-generate groups.</p>
  
  <p>This creates Ansible group <code>ec2</code>, that encompases all EC2 hosts in my AWS account.</p>
  
  <p>A subset of those hosts have tag <code>KubernetesCluster:kube-acceptance</code>. The dynamic inventory script creates a group <code>tag_KubernetesCluster_kube_acceptance</code>.</p>
  
  <p>I would like to construct an Ansible group including all hosts in group <code>ec2</code>, but excluding those in group <code>tag_KubernetesCluster_kube_acceptance</code>. </p>
  
  <p>Can this be achieved in an inventory file?</p>