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:
James Cammarata
2015-07-20 14:36:31 -04:00
parent a0a6d12b05
commit dca36c1d16
4 changed files with 20 additions and 10 deletions

View File

@@ -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