# vim: set filetype=yaml.ansible : --- - name: Tap homebrew taps community.general.homebrew_tap: name: "{{ brew_taps | unique }}" state: present when: brew_taps|length > 0 - name: Install homebrew casks community.general.homebrew_cask: name: "{{ cask_pkgs | unique }}" state: present when: cask_pkgs|length > 0 # TODO: fix the need to have this workaround - name: Workaround to install homebrew taps ansible.builtin.command: cmd: "brew install {{ (tap_pkgs | unique) | join(' ') }}"