Installing multiple roles from the same repo (Ansible Galaxy)

Hi everyone,

I’m having difficulties figuring out how I can install two different roles from the same project. Below is the project tree,
Project_Name
ansible_role
role1
role2

The different between these two roles are their configurations hence why they’re in the same project directory.

When i run ansible galaxy, role1 gets installed and role2 will live inside role1’s directory
roles
role1
defaults
meta
role2
spitz
tasks
templates

The goal is have galaxy install both roles.
roles
role1
defaults
etc
role2
defaults
etc

Thanks in advance,
Ry

Hi everyone,

I'm having difficulties figuring out how I can install two different roles from the same project. Below is the project tree,
Project_Name
  ansible_role
    role1
    role2

The different between these two roles are their configurations hence why they're in the same project directory.

I'm not sure what you mean by this. If the only difference between the
two roles is their configuration, why not have one role, and call them
using those different configurations? Please supply more information
about what you mean.

When i run ansible galaxy, role1 gets installed and role2 will live inside role1's directory
roles
  role1
    defaults
    meta
    role2
    spitz
    tasks
    templates

"will live" sounds like you want it to be like this - is that true?

Also, "when i run galaxy" can mean anything.
Tell us what commands you run, which version of ansible, and what your
configuration files look like.

The goal is have galaxy install both roles.
roles
  role1
    defaults
    etc
  role2
    defaults
    etc

This looks pretty standard.