working through each file

This commit is contained in:
Matthew Stobbs
2025-02-13 11:06:56 -07:00
parent c73ac46bc8
commit 17ed8354c0
12 changed files with 163 additions and 184 deletions

18
tasks/macos.yml Normal file
View File

@@ -0,0 +1,18 @@
# 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(' ') }}"