fix packages

This commit is contained in:
Matthew Stobbs
2025-02-22 14:59:18 -07:00
parent 2d825d855d
commit d1e8957f94
47 changed files with 166 additions and 129 deletions

View File

@@ -1,19 +1,22 @@
# vim: set filetype=yaml.ansible :
---
- name: Tap homebrew taps
when:
- brewtap|length > 0
community.general.homebrew_tap:
name: "{{ brew_taps | unique }}"
name: "{{ brewtap | unique }}"
state: present
when: brew_taps|length > 0
- name: Install homebrew casks
when: pkg_cask|length > 0
community.general.homebrew_cask:
name: "{{ cask_pkgs | unique }}"
name: "{{ pkg_cask | 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(' ') }}"
when:
- pkg_tap|length > 0
changed_when: true
ansible.builtin.command:
cmd: "brew install {{ (pkg_tap | unique) | join(' ') }}"