- name: "Run roles {{ roles }}" hosts: "{{ hosts | default('all') }}" gather_facts: "{{ gather_facts | default('false') }}" tasks: - include_role: name: "{{ role }}" loop: "{{ roles.split(',') }}" loop_control: loop_var: role # to avoid collision with {{ item }}