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
Region: US
Stage: QA
Host: Host1
Region: US
Stage: UAT
Host: Host2
Region: London
Stage: QA
Host: Host3
Region: London
Stage: UAT
Host: Host1
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?