-
Notifications
You must be signed in to change notification settings - Fork 745
docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) #3124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) #3124
Conversation
…to ansible#85897)
|
Thanks for your Ansible docs contribution! We talk about Ansible documentation on Matrix at #docs:ansible.im if you ever want to join us and chat about the docs! We meet on Matrix every Tuesday. See the Ansible calendar for meeting details. We welcome additions to our weekly agenda items too. You can add the |
Akasurde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM will wait for others to comment.
Backport to stable-2.17: 💚 backport PR created✅ Backport PR branch: Backported as #3155 🤖 @patchback |
…to ansible#85897) (#3124) * docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) * docs: merge dict2items group example into existing section (per review) * docs: replace tag_data example with nested server_configs dict example (per review) (cherry picked from commit 61ce435)
Backport to stable-2.18: 💚 backport PR created✅ Backport PR branch: Backported as #3156 🤖 @patchback |
…to ansible#85897) (#3124) * docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) * docs: merge dict2items group example into existing section (per review) * docs: replace tag_data example with nested server_configs dict example (per review) (cherry picked from commit 61ce435)
Backport to stable-2.19: 💚 backport PR created✅ Backport PR branch: Backported as #3157 🤖 @patchback |
…to ansible#85897) (#3124) * docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) * docs: merge dict2items group example into existing section (per review) * docs: replace tag_data example with nested server_configs dict example (per review) (cherry picked from commit 61ce435)
Backport to stable-2.20: 💚 backport PR created✅ Backport PR branch: Backported as #3158 🤖 @patchback |
…to ansible#85897) (#3124) * docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) * docs: merge dict2items group example into existing section (per review) * docs: replace tag_data example with nested server_configs dict example (per review) (cherry picked from commit 61ce435)
…to ansible#85897) (#3124) (#3155) * docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) * docs: merge dict2items group example into existing section (per review) * docs: replace tag_data example with nested server_configs dict example (per review) (cherry picked from commit 61ce435) Co-authored-by: GABRIEL OVIE <ovieorezi@gmail.com>
…to ansible#85897) (#3124) (#3156) * docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) * docs: merge dict2items group example into existing section (per review) * docs: replace tag_data example with nested server_configs dict example (per review) (cherry picked from commit 61ce435) Co-authored-by: GABRIEL OVIE <ovieorezi@gmail.com>
…to ansible#85897) (#3124) (#3157) * docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) * docs: merge dict2items group example into existing section (per review) * docs: replace tag_data example with nested server_configs dict example (per review) (cherry picked from commit 61ce435) Co-authored-by: GABRIEL OVIE <ovieorezi@gmail.com>
…to ansible#85897) (#3124) (#3158) * docs: clarify dict2items usage in loops with group module (follow-up to ansible#85897) * docs: merge dict2items group example into existing section (per review) * docs: replace tag_data example with nested server_configs dict example (per review) (cherry picked from commit 61ce435) Co-authored-by: GABRIEL OVIE <ovieorezi@gmail.com>
Summary
Clarifies correct
dict2itemsusage in playbook loops by showing that nested valuesmust be accessed via
item.value.*(for example,item.value.gid) when looping overa dict converted with
dict2items.Motivation
Addresses recurring confusion discussed in ansible/ansible#85897.
Changes
playbook_guide/playbooks_loops.rstwith a concise example and a “common mistake” note.Notes
A prior attempt in ansible/ansible#85964 failed sanity because
docs/docsite/rst/and
examples/are obsolete in the core repo. This PR moves the content to thecorrect documentation repository.