resolve list of IPs in txt file to DNS

how can i use ansible to resolve list of IPs to DNS names?

https://docs.ansible.com/ansible/latest/collections/community/general/dig_lookup.html