title: Using wildcard in Ansible inventory group doesn't work as expected
body: <p>Running Ansible 2.9.3</p>
  
  <p>Working in a large environment with hosts coming and going on a daily basis, I need to use wildcard hostnames in a host group: ie:</p>
  
  <p>[excluded_hosts]</p>
  
  <p>host01</p>
  
  <p>host02</p>
  
  <p>host03</p>
  
  <p>[everyone]</p>
  
  <p>host*</p>
  
  <p>in my playbook I have</p>
  
  <hr>
  
  <ul>
  <li><p>name: "Test working with host groups"</p>
  
  <p>hosts: everyone,!excluded_hosts</p>
  
  <p>connection: local</p>
  
  <p>tasks:</p></li>
  </ul>
  
  <p>The problem is, the task is running on hosts in the excluded group.
  If I specifically list one of the excluded hosts in the everyone group, that host then gets properly excluded.</p>
  
  <p>So Ansible isn't working as one might assume it would.</p>
  
  <p>What's the best way to get this to work?  </p>
  
  <p>I tried:
   hosts: "{{ ansible_hostname }}",!excluded_hosts </p>
  
  <p>but it errored as invalid yaml syntax.</p>
  
  <p>requirements:  I can not specifically list each host, they come and go too frequently.
  The playbooks are going to be automatically copied down to each host and the execution started afterwards, therefore I need to use the same ansible command line on all hosts.</p>