Skip to content

Commit

Permalink
Homebrew-folder is not default on macs with arm64
Browse files Browse the repository at this point in the history
No reason to create the folder when it isn't needed.

Not sure if this is the best solution here, but it's simple.
  • Loading branch information
dennisse committed Jan 23, 2024
1 parent ef55e4b commit daa998a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions roles/homebrew/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@
when: not homebrew_binary.stat.exists
become: true

- name: Add missing folder if not on Apple-chipset
set_fact:
homebrew_folders_base: "{{ homebrew_folders_base + ['Homebrew'] }}"
when: ansible_machine != 'arm64'

- name: Ensure proper homebrew folders are in place.
file:
path: "{{ homebrew_prefix }}/{{ item }}"
Expand Down
1 change: 0 additions & 1 deletion roles/homebrew/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
homebrew_folders_base:
- Cellar
- Homebrew
- Frameworks
- Caskroom
- bin
Expand Down

0 comments on commit daa998a

Please sign in to comment.