mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Reestablishing the use of tags/when for role duplication detection
Not figuring these in can cause problems with "diamond" pattern relationships, even though this is still not quite optimal.
This commit is contained in:
@@ -274,13 +274,12 @@
|
||||
with_items: "{{cond_bad_attribute.results}}"
|
||||
register: result
|
||||
- set_fact: skipped_bad_attribute=False
|
||||
- name: assert the task was skipped
|
||||
assert:
|
||||
that:
|
||||
- skipped_bad_attribute
|
||||
when: cond_bad_attribute is defined and 'results' in cond_bad_attribute
|
||||
|
||||
- name: assert the task was skipped
|
||||
assert:
|
||||
that:
|
||||
- skipped_bad_attribute
|
||||
|
||||
- name: test a with_items loop skipping a single item
|
||||
debug: var=item
|
||||
with_items: cond_list_of_items.results
|
||||
|
||||
Reference in New Issue
Block a user