There are absolutely no restrictions in the number of tasks you can write in an ansible playbook, I've written hundreds of modules in the same play (but if you ask me if its considered best practice or not, I would recommend using roles instead of one playbook that holds all procedures)
An RHCE 294 student? Who has "written hurndreds of modules" in the same play? That's a pretty robust and rigorous class that you're in. If you don't mind sharing, where (what institution) are you currently enrolled?
Thanks!!!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.