---
- name: Playbook to run adhoc roles
  hosts: "{{ target_hosts }}"
  gather_facts: true

  tasks:
    - name: Include roles
      include_role:
        name: "{{ item }}"
      with_items:
        - "{{ role_name.split(',')|list }}"

---
- name: Playbook to run adhoc roles
  hosts: "{{ target_hosts }}"
  gather_facts: true

  tasks:
    - name: Include roles
      include_role:
        name: "{{ role_item }}"
      loop: "{{ role_name.split(',') }}"
      loop_control:
          loop_var: role_item

Fix "The loop variable ‘item’ is already in use" warning
Fix "The loop variable ‘item’ is already in use" warning
