In one of my latest posts I gave you an explanation about the different usage scenarios for Terraform and Ansible. Personally, I'm using Terraform for my infrastructure tasks and Ansible on top of it.
If you just started to use Terraform for infrastructure deployments, chances are high that you're still using the local state files for the configuration.