--- - hosts: primary tasks: - name: set default roles set_fact: test_subject_roles_default: - libvirt-network - libvirt-pool - libvirt-volume - libvirt-domain - redfish-emulator - airship-libvirt-gate - http-fileserver - name: run tests against defined roles include_tasks: "../../roles/{{ role_name }}/tests/main.yml" with_items: "{{ test_subject_roles | default(test_subject_roles_default) }}" loop_control: loop_var: role_name