I am running an ansible playbook inside a terraform local-exec provisioner with inline inventory of the remote instance IP.
local-exec
- name: Install git apt