ansible/lib/ansible/inventory
Jonas Eriksson 16efb45735 Fix playbook-local host_vars when running from .
Since ansible 1.2, it became possible to place a host_vars
directory in the same directory as a playbook, making it possible
to keep host_vars local to that playbook there. However, due to
python's os.path.dirname, a action such as:

 $ ansible-playbook pb.yml

..would not pick up the host_vars as os.path.dirname("pb.yml")
returns "", unlike the unix command dirname that would return
".". Substituting "pb.yml" on the command line with "./pb.yml"
would do the trick, but is not always intuitive. This patch
solves the problem until python solves issue18547 [1].

[1] http://bugs.python.org/issue18547
2013-07-24 18:33:06 +02:00
..
vars_plugins Fix playbook-local host_vars when running from . 2013-07-24 18:33:06 +02:00
__init__.py Enable negated patterns 2013-06-20 07:55:35 +02:00
dir.py don't want to ignore explicit cwd 2013-06-04 21:06:49 -07:00
expand_hosts.py Add support for multiple ranges in a host 2013-06-06 22:27:30 +02:00
group.py optimization when adding child groups 2013-06-04 11:25:59 +02:00
host.py Get all groups' variables in order of depth 2012-11-23 00:20:52 +01:00
ini.py Use with guard for file reads. 2013-06-10 17:16:31 +02:00
script.py Support for all:vars in script inventories 2013-06-02 14:54:29 -07:00