How to run Ansible without hosts file?

Hi all,
While i am learning Ansible, i have a doubt regarding how can we run ansible without hosts file?

@jackleo you can pass hosts to ansible-playbook command like this

ansible-plpaybook -i host1, host2,

Remember to keep the last comma.