If you quickly want to verify if everything is ok with the playbook. You can perform a Syntax check.
Here is the ansible command line example on how to perform Syntax check on ansible playbook. Refer the video for the practical idea.
➜ ansible-playbook --syntax-check sampleplaybook.yml -i ansible_hosts
![](https://i0.wp.com/myfuturehub.com/wp-content/uploads/2022/08/MFH_DevOps-2.png?resize=112%2C158&ssl=1)