Files
ansible_role_package/tasks/macos.yml
Matthew Stobbs d1e8957f94 fix packages
2025-02-22 14:59:18 -07:00

23 lines
568 B
YAML

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