-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unixPb: Add role to install intel homebrew for arm64 macs (#3185)
* add intel homebrew install for m1 macs * remove spaces * add brew path to brew ansible modules * change formatting of module parameters * typo * remove debug tasks * add comment * specify homebrew path * correct conditions * remove intel homebrew, uninstall libpng * add adoptopenjdk tag to libpng uninstall
- Loading branch information
1 parent
1cfca8a
commit bc2a40a
Showing
4 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,16 @@ | |
Ensure that Apple_ID_User, Apple_ID_Password and FASTLANE_SESSION are defined. Skipping Xcode installation" | ||
when: apple_variables is not defined | ||
|
||
- name: Set Mac homebrew path (x64) | ||
set_fact: | ||
homebrew_path: /usr/local/bin | ||
when: ansible_architecture == "x86_64" | ||
|
||
- name: Set Mac homebrew path (Arm64) | ||
set_fact: | ||
homebrew_path: /opt/homebrew/bin | ||
when: ansible_architecture == "arm64" | ||
|
||
- name: Install Xcode | ||
when: apple_variables is defined | ||
block: | ||
|
@@ -29,6 +39,7 @@ | |
homebrew: | ||
name: [email protected] # no 3.0 yet for fastlane (https://github.com/fastlane/fastlane/issues/17931) | ||
state: present | ||
path: "{{ homebrew_path }}" | ||
|
||
- name: Configure Bash profile extension for Ruby | ||
become: yes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters