We use comma (,) to tell Ansible that this is a list of hosts even it only has one item:
ansible-playbook -i localhost, play.yml