We have created a stretched cluster over 2 sites, backed by vSAN, all good so far.
Problems appear when we want to deploy a new vm with ansible. The playbook uses the cluster as a variable, not hosts, so it seems that vm placement is totally random. That is an issue as we want to deploy the vm's to only one of the sites. I know I can regulate this with drs rules, but there is no way to create rules on a vm before it is deployed?
Does anyone know how to make sure vm's only gets deployed to the hosts on a site of my choice?