> There will not be a task that applies roles, the "role" directive is for > this. >
But, AFAIK, the "role" directive can only be applied from a playbook, not from another role. So, if the task suggested by Juho will not exist, how can you apply to a role the logic that is wrapped as another role? The only way I know is using dependencies, but those are always applied *before* the role's tasks are applied. And sometimes you need to run tasks before a dependency is applied (something equivalent to playbooks' pre_tasks, but for roles). Is there a way to do this? I'm pretty new to Ansible so I may be missing something. Thanks, Jaime -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6921184f-2681-43bc-97c6-c19cf7b96e34%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.