Re: [ansible-project] Re: Dependencies from private repo

2016-09-30 Thread Karibou Hunter
Hi Alex,

Thanks for your response, but I think you misunderstood what I am trying to
achieve.
I want to pull automatically with dependencies, the corresponding roles.

I tried differents solutions, and the one with usage of requirements.yml
before playbook launch seems best.

2016-09-22 4:47 GMT+02:00 Alexander H. Laughlin :

> Hi Karibou,
>
> I think what you're looking for is the Vault
> . You can store the
> url in your vault with the username and password included. That file would
> look like this:
>
> role-foo-url: 'git+http://username:passw...@git.example.com/repos/role-
> foo,v1.1,foo '
>
> And you would adjust the play in your email as follows:
>
> dependencies:
>  - { role: role-foo-url }
>
> Alternatively you could put just the username and password in the vault
> and do the replacement on execution of the play itself.
>
> Thanks,
> Alex
>
>
>
> On Tuesday, September 20, 2016 at 7:53:54 AM UTC-7, Karibou Hunter wrote:
>>
>> Hi all,
>>
>> I am trying to automatically pull roles within a role meta/main.yml
>> dependencies.
>>
>> I have seen something deleted on documentation
>> 
>> about this format :
>> dependencies:
>>  - { role: 'git+http://git.example.com/repos/role-foo,v1.1,foo' }
>>
>> I am using Ansible 2.1.0.0, and I have the same behaviour than Brian in
>> this ML.
>> 
>>
>> Do we must use* ansible-galaxy install* command with *requirements.yml*
>> file before executing the playbook ?
>>
>>
>> Thanks in advance
>>
>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/gHv57JjRpnY/unsubscribe.
> To unsubscribe from this group and all its topics, 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/45c208f4-8ffc-4cbb-bdab-07792f10a4f2%40googlegroups.
> com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHhP0RCUP%2BZqVo7AwggYkY9nbhE4ok_2TE0puZpnKf8AoBP3ug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Dependencies from private repo

2016-09-21 Thread Alexander H. Laughlin
Hi Karibou,

I think what you're looking for is the Vault 
. You can store the 
url in your vault with the username and password included. That file would 
look like this:

role-foo-url: 'git+http://username:passw...@git.example.com/
repos/role-foo,v1.1,foo '

And you would adjust the play in your email as follows:

dependencies:
 - { role: role-foo-url }

Alternatively you could put just the username and password in the vault and 
do the replacement on execution of the play itself.

Thanks,
Alex



On Tuesday, September 20, 2016 at 7:53:54 AM UTC-7, Karibou Hunter wrote:
>
> Hi all,
>
> I am trying to automatically pull roles within a role meta/main.yml 
> dependencies.
>
> I have seen something deleted on documentation 
> 
>  
> about this format :
> dependencies:
>  - { role: 'git+http://git.example.com/repos/role-foo,v1.1,foo' }
>
> I am using Ansible 2.1.0.0, and I have the same behaviour than Brian in 
> this ML. 
> 
>
> Do we must use* ansible-galaxy install* command with *requirements.yml* 
> file before executing the playbook ?
>
>
> Thanks in advance
>
>
>
>

-- 
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/45c208f4-8ffc-4cbb-bdab-07792f10a4f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.