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
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
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”
“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.
Thanks for the answers.
Regards Mirko