Files
ansible_role_package/tasks/macos.yml
2025-02-19 22:23:47 -07:00

20 lines
536 B
YAML

# 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(' ') }}"
changed_when: true