- name: Check for installation 
  stat: 
    path: "{{ item.install_path }}"
  with_items: "{{ casks_to_install }}"
  register: installed_apps

- name: Install casks
  homebrew_cask:
    name: "{{ item.name }}"
    state: present
  with_items: "{{ installed_apps.results }}"
  when: item.stat.exists == False

- name: Check for installation 
  stat: 
    path: "{{ item.install_path }}"
  with_items: "{{ casks_to_install }}"
  register: installed_apps

- name: Install casks
  homebrew_cask:
    name: "{{ item.item.name }}"
    state: present
  with_items: "{{ installed_apps.results }}"
  when: item.stat.exists == False

Update to correctly refer to cask name
Update to correctly refer to cask name
