Referencing roles within a module?

First off, I am pretty new to Ansible roles, so please bear with me. There is a set of roles in a module (https://github.com/redhat-cop/casl-ansible), and I want to use a role within that module called oc-apply. How do I reference that?

I created a YAML file to install the module:

`

This is the Ansible Galaxy requirements file to pull in the correct roles

to support the operation of CASL provisioning/runs.

scm: git
version: master
`

And a playbook which is wanting to use the oc-apply role within that module

`

I found a work-around, but I am not sure if it is the correct way to handle this.

After installing via ansible-galaxy as described above, I used the following playbook to run the role:

`

yes, you are doing this in right way, you can call role directly or you can parameterize the roles:
Example:

---