Example of a ansible hosts file:
192.168.1.46 192.168.1.47 192.168.1.48 [master] 192.168.1.46 [worker] 192.168.1.47 192.168.1.48
It's held at /etc/ansible/hosts