ansible add host to multiple groups
<p>I am not sure if below can be achieved via ansible.
I have got list of hosts as belows: NOTE: Host can be repeated across groups</p>

<blockquote>
  <p>Region: US <br> Stage: QA <br> Host: Host1 <br> Region: US <br> Stage: UAT <br> Host: Host2 <br> 
  Region: London <br> Stage: QA <br> Host: Host3 <br> Region: London <br> Stage: UAT <br> Host:
  Host1</p>
</blockquote>

<p>Now I may want to run certain tasks on all the Hosts in US group. Or I may want to run Host with region us and stage as qa. Or I may want to run all the host belonging to QA group. So how can i achieve this?</p>