On Sat, 4 Feb 2017 10:55:05 -0800 Jon Forrest <nob...@gmail.com> wrote:
JF> The Ansible documentation says "you can also use multiple inventory JF> files at the same time" but, AFAIK, that isn't entirely accurate. JF> If you give the '-i' flag a directory, then any inventory files under JF> that directory are indeed used, which is nice. However, what if you JF> want to use several inventory files that are *not* under a specific JF> parent directory? For example, maybe you want to use /etc/ansible/hosts JF> and ~/ansible/my_inventory. From what I can see, this isn't currently JF> possible. Is this correct? JF> I would think it would be nice if the '-i' option were changed to JF> accept multiple directories. I know you can currently give multiple JF> comma-separated hosts so maybe a different character would be used JF> to separate directories. Simply accepting multiple `-i` options would be enough, no need for special characters. In addition, inventory locations could be URLs in addition to file locations. That would decouple the inventory so it can be easily distributed to new machines etc. Obviously the inventory script could download a URL, but that still requires a local executable to be created and maintained. Ted -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/87shnro0tq.fsf%40flea. For more options, visit https://groups.google.com/d/optout.