ansible/lib/ansible/inventory
Brian Coca df16e37ad7 Implicit localhost ondemand (#16900)
* Revert "There can be only one localhost"

This reverts commit 5f1bbb4fcd.
this broke several usages of localhost, see #16882, #16898 and #16886

* ensure there is only 1 localhost

fixes #16886, #16882 and #16898

- make sure localhost exists before returning it
- optimzed host caching
- ensure we always return a host object

(cherry picked from commit f7570f1dc4)
2016-08-02 10:39:37 -04:00
..
vars_plugins Add python3-compat boilerplate to all .py files in lib/ansible 2015-10-19 18:36:19 -07:00
__init__.py Implicit localhost ondemand (#16900) 2016-08-02 10:39:37 -04:00
dir.py draft add group merge priority and yaml inventory 2016-04-07 16:22:36 -04:00
expand_hosts.py Be systematic about parsing and validating hostnames and addresses 2015-09-11 21:47:18 +05:30
group.py Mark implicitly hosts as such and exclude them from the all group 2016-06-04 18:54:50 -05:00
host.py Mark implicitly hosts as such and exclude them from the all group 2016-06-04 18:54:50 -05:00
ini.py draft add group merge priority and yaml inventory 2016-04-07 16:22:36 -04:00
script.py better error when host inventory script isnt dict 2016-01-25 16:32:09 -05:00
yaml.py made format more flexible and allow for non dict entries 2016-05-16 14:40:11 -04:00