--- - hosts: localhost gather_facts: no vars_files: - "{{demo}}/setup.yml" tasks: - name: setup components include_role: name: "redhat_cop.controller_configuration.{{ item }}" loop: "{{ controller_components }}" when: - controller_components | d("") | length > 0