So I used to have one fairly long main.yml playbook that was used to perform a number of similar-tasks, one of which was to install rbenv, the ruby management tool.
Hello Colin,
The most simple way I guess is just to split your playbook with pre_tasks, roles and tasks sections. Something similar to:
Hey, Thanks for the reply… This is already in a role though, so would calling a role from a role make sense or even work?
Thanks, C
The only way you can invoke a role from within a role is via meta/main.yml You may not explicitly invoke a role within a role like you do tasks.