fix packages
This commit is contained in:
@@ -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(' ') }}"
|
||||
|
||||
Reference in New Issue
Block a user