Yes... This has been brought up 1-2 times before.
At some point, roles will expand and need to include other files, things like include_vars, multiple templates, etc. This enforces a standard where everybody's roles follow a common convention. --Michael On Mon, Nov 3, 2014 at 4:37 PM, Teemu Kurppa <[email protected]> wrote: > Hi, > > continuing discussion from Twitter: > https://twitter.com/Teemu/status/529356262862241792 > > Is there a reason for forcing verbose directory structure inside roles? > > When making roles for internal purposes, I often start with a playbook and > after it grows more complex I move a part of the functionality inside a new > role. However, most roles are rather simple and need just a couple of files > or even just tasks/main.yml if I keep most of the things hardcoded in the > beginning. The forced directory structure with > > roles/myrole/tasks/main.yml > roles/myrole/vars/main.yml, > > ... seems unnecessarily deep and verbose. It seems that for simpler roles > something like > > roles/myrole/tasks.yml > roles/myrole/vars.yml > > would be enough. Or we could go even simpler, just a single main.yml in > the beginning: > > roles/myrole/main.yml > > and then refactor when the role grows more complex. > > > > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/6348a390-dc03-4ca9-ad0e-bf630f86de9a%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/6348a390-dc03-4ca9-ad0e-bf630f86de9a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwPXVibQ2PKf%2B26Sdh-t-FPNUHOz5nOseX51cSBPSsDRw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
