- name:ensure that role_name exists in role_names, ansible_play_role_names, ansible_role_names, and not in ansible_dependent_role_names
assert:
that:
- "role_name in role_names"
- "role_name in ansible_play_role_names"
- "role_name in ansible_role_names"
- "role_name not in ansible_dependent_role_names"
- name:ensure that our dependency (prepare_tests) exists in ansible_role_names and ansible_dependent_role_names, but not in role_names or ansible_play_role_names
assert:
that:
- "'prepare_tests' in ansible_role_names"
- "'prepare_tests' in ansible_dependent_role_names"
- "'prepare_tests' not in role_names"
- "'prepare_tests' not in ansible_play_role_names"
- name:ensure that ansible_role_names is the sum of ansible_play_role_names and ansible_dependent_role_names