---
- name: 'Ensure {{ app_name }} is installed'
  become: false
  community.general.homebrew:
    name: git-lfs
    state: present
  register: install_result

- name: Ensure git-lfs global configuration is run # noqa 303 503
  environment:
    PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:{{ ansible_env.PATH }}
  become: false
  command: git lfs install --system
  args:
    chdir: ~/
  when: install_result.changed
