Syntax for role dependencies in meta/main.yml?

38 views
Skip to first unread message

ZillaYT

unread,
Oct 2, 2017, 4:21:08 PM10/2/17
to Ansible Project
I'm playing with role dependencies using git repos

What is the syntax for role dependencies in the role's meta/main.yml file? I've tried

meta/main.yml
---
dependencies
:
 
- role: "git+ssh://git/path/some_repo"

or

 
-{role: "git+ssh://git@path/some_repo"}

It's an Atlassian Bitbucket repo, hence the ssh:// in path

Thanks

Soniya panwar

unread,
Oct 4, 2017, 4:20:10 AM10/4/17
to Ansible Project
>> What is the syntax for role dependencies in the role's meta/main.yml file? 

You can use this syntax for the same:

meta/main.yml
---
dependencies
:
  
 -{rolesome_repo, src:git+ssh://git@path/some_repo 
Reply all
Reply to author
Forward
0 new messages