Altering dependency role order

I currently have a role(role_one) that, as specified in its meta/main.yml, list another role dependency (role_two).

dependencies:

  • src: git+https://wwwin-github.com/role_two.git
    version: master

I would like this dependency (role_two) to run AFTER role_one. However, every time I invoke role_one, role_two always gets run first.

Is there any way to alter this behavior? Or does having a dependency listed mean that dependency will always run first?

Any help would be appreciated!

-Ryan

Dependency always run first. Either reverse the dependencies or bypass
by listing the roles in order in play or use include_role to run the
role at the exact point you want.

Thanks for the reply. I decided to just use a requirements.yml file and invoke the role with the “include_role” module to get the desired behavior.