mitchellh/vagrant — pull request #2035 by ches (2013-08-08 18:33:54+00:00)
Title: Ansible inventory can be a directory, not just a file

It is an under-documented feature that one can specify a directory as the Ansible inventory source, not just a single file. In that case, Ansible merges the contents of flat files and any executable inventory plugins found in the directory.

This is useful, for instance, to put localhost in your inventory for use with `local_action` even if your entire infrastructure is otherwise on EC2 or some other dynamic inventory source. I also use a flat file to create aliases for host groups automatically generated from the EC2 API, like "staging" for `tag_Environment_staging`.