Deploy 2 KVM based VMs on 2 different Ubuntu Hosts using single main.tf file

Hi,
Is it possible to deploy 2 KVM based VMs on 2 different Ubuntu Hosts using single main.tf file(meaning with a single terraform apply command).
If yes then how to change the uri under provider section during deployment on 2 different hosts ?