I'm definitely ok with this. Is this something you'd like to work on?
Should be a very small patch. On Fri, Aug 29, 2014 at 7:18 AM, Quentin Stafford-Fraser < [email protected]> wrote: > I love the 'inventory directory' feature, and typically have directories > called, e.g: > > * inventory/staging/ > * inventory/live/ > * inventory/docker/ > * inventory/local/ > > but I would sometimes like to document in each one how to use them, and > what they do. > > At present, if you specify a directory as the inventory, it will load any > regular files within it as inventory files and execute any scripts as > inventory scripts. > > It ignores any files that match > > "~", ".orig", ".bak", ".ini", ".retry", ".pyc", ".pyo" > > Can I propose that a few extras be added to that list, perhaps: > > "*.txt", "*.doc", "*.md" > > so you can put a README.txt in the directory without it being interpreted > as an inventory? > > Other alternatives: > > * You could require things that were actually inventory files to have a > particular naming structure > * You could have a .exclude file which listed files to be ignored > > At present, my workaround is to put a README.txt in each one but to begin > every line with a '#'. It is then read as an inventory file but ignored! > > > > -- > 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/44e49123-19ce-437f-a1c7-d2938c36be1a%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/44e49123-19ce-437f-a1c7-d2938c36be1a%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%2BnsWgw8KzLXVnmkmnez4v54F7Pat%2Begss7DmTXtSmW-D%3DBPAg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
