Michael - A pull request will be coming your way shortly.
I've excluded README* files by default, and also allowed a directory to include an '.inventoryignore' file (analagous to .gitignore) which lists patterns of files to be ignored in place of the defaults. All the best, Quentin On Friday, 29 August 2014 12:43:44 UTC+1, Michael DeHaan wrote: > > 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] <javascript:>> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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/191ab87f-7307-40d8-a40d-58a6b5e0dfbd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
