How Do You Troubleshoot the Ansible Error “block is not a valid attribute for a Play”?

Problem scenario
You run an ansible-playbook command but you receive "'block' is not a valid attribute for a Play." What should you do?

Solution
Change the word "block" to "tasks" in your playbook.

Leave a comment

Your email address will not be published. Required fields are marked *