How Terraform triggers Ansible when is in different repo

Hi! To trigger Ansible from Terraform in a instance creation people use to do this:

provisioner "local-exec" {
      command = "ansible-playbook ......."

My question is:

Once the ec2 is created, imagine I have Ansible in a different repo than Terraform, how do I trigger Ansible to apply changes in my EC2 when I do a changes in Ansible repo?

I dont know if this is the best practice, maybe there is a better way to do it.