Skip to content

Commit

Permalink
constructed, let users know some limitations (ansible#84510)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* updated as per fb

---------

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
bcoca and felixfontein authored Jan 9, 2025
1 parent 64cbb71 commit 477433c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ansible/plugins/doc_fragments/constructed.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ class ModuleDocFragment(object):
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.
"""

0 comments on commit 477433c

Please sign in to comment.