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:
---
pre_tasks:
- name: Install virtualenv
yum: name=python-virtualenv state=present
I get: ERROR: expecting dict; got: pre_tasks, error in <snip>/tasks/main.yml
The page
http://docs.ansible.com/playbooks_roles.html#roles seems to indicate that no other files or folders represent pre_tasks.
So how do I define pre_tasks?
Thanks,
Fokeyjo