Here’s the command to run the Ansible playbook.

<pre lang="bash">ansible-playbook -t hosts playbook.yml

Or simply run it like this.

<pre lang="bash">ansible-playbook playbook.yml