mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Allow dict2items to work with hostvars (#53538)
This commit is contained in:
parent
4e39b9fe02
commit
414440e323
3 changed files with 11 additions and 2 deletions
|
@ -266,3 +266,10 @@
|
|||
- "'192.168.0.1/24' | ipaddr('network') == '192.168.0.0'"
|
||||
- "'fe80::dead:beef/64' | ipaddr('broadcast') == 'fe80::ffff:ffff:ffff:ffff'"
|
||||
- "'::1/120' | ipaddr('netmask') == 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff00'"
|
||||
|
||||
- name: Ensure dict2items works with hostvars
|
||||
debug:
|
||||
msg: "{{ item.key }}"
|
||||
loop: "{{ hostvars|dict2items }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue