Here’s the command to run the Ansible playbook.

ansible-playbook -t hosts playbook.yml

Or simply run it like this.

ansible-playbook playbook.yml