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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/90da8260-ebca-4749-b327-663bae0b7036%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to