Role namespacing directories vs. dot notation

183 views
Skip to first unread message

Mirko Friedenhagen

unread,
Dec 5, 2014, 5:31:15 PM12/5/14
to ansible-project
Hello,

when you have a lot of roles, it might be feasible give them a
structure. What's the preferred way in ansible?
Using directory hierarchies like roles/fizz/buzz or dots roles/fizz.buzz?

Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/

Matt Martz

unread,
Dec 5, 2014, 5:36:05 PM12/5/14
to ansible...@googlegroups.com
Dot notation is currently used by Galaxy, however the namespaces there are typically usernames.

Ansible doesn't necessarily support nested role directories like you mention, so I am going to stick with dot notation.

It's really just a directory name with a period in it at that point.

To reference it, you need to use the full dot notated name such as "fizz.buzz"
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK8jvqyNsDAhtwe%2Bde_NH27xg4pu_km7OoEeNdBz9r_pHDkwvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Michael DeHaan

unread,
Dec 5, 2014, 8:58:26 PM12/5/14
to ansible...@googlegroups.com
"Ansible doesn't necessarily support nested role directories like you mention, so I am going to stick with dot notation."

Ansible can check out role paths anywhere you want, you'll just have to configure the roles path in ansible.cfg OR stick the "/" in there when referring to the role name.



Mirko Friedenhagen

unread,
Dec 6, 2014, 4:58:50 AM12/6/14
to ansible-project
Reply all
Reply to author
Forward
0 new messages