Chris - that makes sense. 

However, there's another use case where the support would be helpful. Which 
is keeping the ansible role in the same repo as the application it 
installs.  So if I have github.com/myuser/mycoolapi.git I might want to 
keep the ansible role in a folder within the same mycoolapi that way the 
role can be versioned with the code it installs.  Thoughts?

Franklin

On Friday, February 26, 2016 at 5:44:35 AM UTC-8, Chris Houseknecht wrote:
>
> The role installation process does not support this at present.  We're in 
> the middle of re-thinking how role installs work. If you're interested, 
> there is a proposal at github.com/ansible/ansible. Look in docs/proposals.
>
> Combining multiple roles into a single repo makes things like testing, 
> linting and versioning more complicated, so I don't know that we really 
> want to add this support. However, you can always suggest it and see what 
> the community thinks. 
>
> --Chris 
>
>
> On Thursday, February 25, 2016 at 12:37:17 PM UTC-5, Nick Allen wrote:
>>
>>
>> I have a Github repository that contains multiple roles, each in separate 
>> subdirectories.  For example, I have separate roles 'role-alpha' and 
>> 'role-beta' in a repo at https://github.com/whoami/project.git each 
>> located in subdirectories as follows.
>>
>>    - provisioning/roles/role-alpha
>>    - provisioning/roles/role-beta
>>
>>
>> I am trying to install these roles via a 'requirements.yml' file by 
>> running the following.
>>
>> ansible-galaxy install -r requirements.yml
>>  
>> Can I install roles from a single Github repository that have multiple 
>> roles, each in unique subdirectories?  What would the definition look like?
>>
>> - name: role-alpha
>>   src: https://github.com/whoami/project.git
>>   ???: provisioning/roles/role-alpha
>>
>> Many thanks for any advice.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f31a2421-a76d-4b19-8653-2fe326876c78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to