Variable for "hosts:" value in playbook

Hi Team;

I have been trying to find an answer for this, but can’t seem to find a solution anywhere.

The situation is as follows;

I am running an AWX server, and I have a number of servers;

as an example;

Site1ServerWEB01
Site1ServerWEB02
Site1ServerPXY01
Site2ServerPXY02

Site2ServerWEB01
Site2ServerWEB02
Site2ServerPXY01
Site2ServerPXY02

I have then created via the AWX web interface, a Smart Inventory, which is based on the site name; ie inventory name “Site1” (contains all servers beginning with Site1) , “Site2” (contains all servers beginning with Site2)

I then want to have 1 master YAML file which contains all the tasks that I want to run…

However I want the playbook broken up as follows;