dynamic inventory
Use this to query metadata placed by TF: https://docs.ansible.com/ansible/latest/modules/os_server_info_module.html#os-server-info-module
For dynamic inventory use this new way? https://docs.ansible.com/ansible/latest/plugins/inventory/openstack.html
or the script that was here: https://github.com/ansible/ansible/blob/4e8b240b8b74db2453851f12ec82c7f782289187/contrib/inventory/openstack_inventory.py but got removed and is perhaps no longer supported.
Edited by Ryan Taylor