From f993e213dabae908d06963bf38f7999e4a8f9e02 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 27 Sep 2017 12:00:06 -0400 Subject: [PATCH] added note about inventory_dir new behaviour (#30865) * added note about inventory_dir new behaviour (cherry picked from commit cd5cadfe69982b7668c15f25547c37ae5981db28) --- CHANGELOG.md | 1 + docs/docsite/rst/porting_guide_2.4.rst | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb4d9d584e2..6f38f9459c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ Ansible Changes By Release * corrected issues with slack callback plugin * it is import_playbook .. not import_plays .. docs now reflect this * fixed typo and missed include/import conversion in import_tasks docs +* updated porting docs with note about inventory_dir diff --git a/docs/docsite/rst/porting_guide_2.4.rst b/docs/docsite/rst/porting_guide_2.4.rst index bf90c2b374e..a72ba2727b1 100644 --- a/docs/docsite/rst/porting_guide_2.4.rst +++ b/docs/docsite/rst/porting_guide_2.4.rst @@ -20,6 +20,17 @@ Python version Ansible will not support Python 2.4 nor 2.5 on the target hosts anymore. Going forward, Python 2.6+ will be required on targets, as already is the case on the controller. + +Inventory +========= + +Inventory has been refactored to be implemented via plugins and now allows for multiple sources. This change is mostly transparent to users. + +One exception is the ``inventory_dir``, which is now a host variable; previously it could only have one value so it was set globally. This means you cannot use it early in plays anymore to determine ``hosts:`` or similar keywords. + +The ``inventory_file`` remains unchaged, as it was always host specific. + + Deprecated ==========