Searched the answers for this but either I'm blind or nobody has mentioned this one yet. No idea where I learned it but if you don't have any special variables from the inventory to worry about just provide an adhoc CSV to the inventory flag like so.
ansible-playbook playbooks/example.yml -i ', imac-1.local'