diff --git a/docs/docsite/rst/dev_guide/developing_inventory.rst b/docs/docsite/rst/dev_guide/developing_inventory.rst index 8945a7e8b1..1a03f21706 100644 --- a/docs/docsite/rst/dev_guide/developing_inventory.rst +++ b/docs/docsite/rst/dev_guide/developing_inventory.rst @@ -86,6 +86,18 @@ The data to be added to the top level JSON dictionary looks like this:: } } +To satisfy the requirements of using ``_meta``, to prevent ansible from calling your inventory with ``--host`` you must at least populate ``_meta`` with an empty ``hostvars`` dictionary, such as:: + + { + + # results of inventory script as above go here + # ... + + "_meta": { + "hostvars": {} + } + } + .. seealso:: :doc:`developing_api`