summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2019-03-08 21:36:53 +0100
committerGitHub <noreply@github.com>2019-03-08 21:36:53 +0100
commit414440e3237186bf6eb2f3cb1d1fbb1ebb4186e5 (patch)
tree1f2f149443e806a5738412b35cdfcf3172e81b66 /test
parentapt: clarify cache_valid_time (#53442) (diff)
downloadansible-414440e3237186bf6eb2f3cb1d1fbb1ebb4186e5.tar.xz
ansible-414440e3237186bf6eb2f3cb1d1fbb1ebb4186e5.zip
Allow dict2items to work with hostvars (#53538)
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/filters/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/targets/filters/tasks/main.yml b/test/integration/targets/filters/tasks/main.yml
index 99aa9beeb3..a16698a465 100644
--- a/test/integration/targets/filters/tasks/main.yml
+++ b/test/integration/targets/filters/tasks/main.yml
@@ -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 }}"