23 lines
568 B
YAML
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(' ') }}"
|