title: Wildcard in Ansible in template
body: <p>Does anyone tried to use wildcard in template or in playbook?</p>
  
  <p>The wildcard works in inventory and listing hosts but it's not working in template or in playbook.</p>
  
  <p>Following command works:</p>
  
  <pre><code>ansible -i inventory/ec2.py tag_Name_Hbase*  --list-host`
  </code></pre>
  
  <p>but the same thing is not working in playbook.</p>
  
  <p>Example (not working):</p>
  
  <pre><code>Node: `{{ {{ ":2181,".join(groups["tag_Name_Zookeeper*"]) }}:2181 }}`
  </code></pre>
  
  <p>Example (working):</p>
  
  <pre><code>Node: `{{ {{ ":2181,".join(groups["tag_Name_Zookeeper_Kafka01"]) }}:2181 }}`
  </code></pre>