Pre_tasks using best practices layout

Hiya,

Hopefully this is an easy quick question… I’m using the layout described in http://docs.ansible.com/playbooks_best_practices.html.

I want to define a pre-task to a role defined in meta/main.yml, but I can’t seem to do it. If my tasks/main.yml looks like this:

Ansible roles don’t have a way of defining pre and post tasks.

They are usually defined as a way to do things before applying generic tasks/roles, like load balancing, and it would be a little confusing to have them in the list of roles when some steps would be executed out of order.