From 477433c5ba9135744a690dfb1abb26aa851aea05 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 9 Jan 2025 16:18:23 -0500 Subject: [PATCH] constructed, let users know some limitations (#84510) * constructed, let users know some limitations reasons https://forum.ansible.com/t/debugging-constructed-inventory-constructing-group-from-values-of-host-variables/39443 * fix indent * Update lib/ansible/plugins/doc_fragments/constructed.py Co-authored-by: Felix Fontein * updated as per fb --------- Co-authored-by: Felix Fontein --- lib/ansible/plugins/doc_fragments/constructed.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/plugins/doc_fragments/constructed.py b/lib/ansible/plugins/doc_fragments/constructed.py index 00f8bae414b..47d65c0b06f 100644 --- a/lib/ansible/plugins/doc_fragments/constructed.py +++ b/lib/ansible/plugins/doc_fragments/constructed.py @@ -79,4 +79,8 @@ options: type: boolean default: True version_added: '2.11' +notes: + - Inventories are not finalized at this stage, so the auto populated C(all) and C(ungrouped) groups will + only reflect what previous inventory sources explicitly added to them. + - Runtime 'magic variables' are not available during inventory construction. For example, C(groups) and C(hostvars) do not exist yet. """