Support item label in v2_playbook_on_include (#42478)

* Support item label in v2_playbook_on_include. Fixes #42301

* test fixes
This commit is contained in:
Matt Martz 2018-07-09 10:27:00 -05:00 committed by Brian Coca
commit 50905b980d
3 changed files with 8 additions and 2 deletions

View file

@ -76,6 +76,6 @@ fi
# Test that duplicate items in loop are not deduped
ANSIBLE_STRATEGY='linear' ansible-playbook tasks/test_include_dupe_loop.yml -i ../../inventory "$@" | tee test_include_dupe_loop.out
test "$(grep -c 'item=foo' test_include_dupe_loop.out)" = 3
test "$(grep -c '"item=foo"' test_include_dupe_loop.out)" = 3
ANSIBLE_STRATEGY='free' ansible-playbook tasks/test_include_dupe_loop.yml -i ../../inventory "$@" | tee test_include_dupe_loop.out
test "$(grep -c 'item=foo' test_include_dupe_loop.out)" = 3
test "$(grep -c '"item=foo"' test_include_dupe_loop.out)" = 3