1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-01 16:18:55 +00:00

Don't ignore a duplicate host for an already processed include (#40361)

* Don't ignore a duplicate host for an already processed include, assume that the repetition indicates a new include. Fixes #40317

* Add intg tests to ensure duplicate items in loop are not deduped

* Add note about relative indexing
This commit is contained in:
Matt Martz 2018-06-08 15:36:22 -05:00 committed by GitHub
parent 77b54a3267
commit 76867730bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 6 deletions

View file

@ -0,0 +1,2 @@
- debug:
msg: "item={{ item }}"

View file

@ -0,0 +1,8 @@
- name: Test Include Duplicate Loop Items
hosts: testhost
tasks:
- include_tasks: debug_item.yml
loop:
- foo
- foo
- foo