Terraform vSphere Local-exec

Hi all, I am a cloud engineer and I’m new here. Currently I’m working with terraform and ansible to deploy simple vm to vsphere environment. It’s all okay when I use Terraform only, then I use ansible (remote-exec and local-exec) to config my simple vm, but it failed, maybe you will understand with this picture:

as you can see, I also use same resource to make output file, and it’s shows my deployed vm so it works perfectly. But when I use it with remote and local exec, it doesn’t seems work correctly. Do you guys have any suggestion regarding this issue?