how to refactor a play consisting of multiple roles into a single role?

I’d like to convert a playbook consisting of several (3) roles into a role (the playbook: github.com/leucos/ansible-rbenv-playbook).

It seems odd that I would flatten the several roles back into plays, but I haven’t seen examples of a role consisting of roles.

What is the recommended approach for making a role from a playbook consisting of several roles?

Thanks, G

Having a play map server roles to a host group is pretty simple:

  • hosts: webservers
    roles:
  • role_a
  • role_b
  • role_c

Some users may like role dependencies but they are usually overkill, and I don’t use them hardly ever myself.

(It is true of course that a role doesn’t consist of roles - it’s made up of tasks, handlers, variables (defaults and ones that are strictly observed, and metadata)