Skip to content

Commit 1fb2321

Browse files
authored
unix: Install curl on macos14 intel via brew (#4150)
1 parent 5d5cb32 commit 1fb2321

File tree

1 file changed

+15
-0
lines changed
  • ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/curl/tasks

1 file changed

+15
-0
lines changed

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/curl/tasks/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
set_fact:
3232
homebrew_path: /usr/local/bin
3333
when: ansible_distribution == "MacOSX" and ansible_architecture == "x86_64"
34+
tags: curl
3435

3536
- name: Set Mac homebrew path (Arm64)
3637
set_fact:
3738
homebrew_path: /opt/homebrew/bin
3839
when: ansible_distribution == "MacOSX" and ansible_architecture == "arm64"
40+
tags: curl
3941

4042
- name: Download curl {{ curl_latest }}
4143
get_url:
@@ -152,3 +154,16 @@
152154
- "macos_version_number is version('10.13', '>')"
153155
- ((not curl_version.stdout) or ((curl_version.stdout) and (curl_version.stdout is version_compare(curl_oldest, operator='lt', strict=True))))
154156
tags: curl
157+
158+
- name: Install curl via brew on MacOS 14 x64 (regardless if curl is already installed)
159+
become: yes
160+
become_user: "{{ ansible_user }}"
161+
homebrew:
162+
name: curl
163+
state: latest
164+
path: "{{ homebrew_path }}"
165+
when:
166+
- ansible_distribution == "MacOSX"
167+
- ansible_distribution_major_version == "14"
168+
- ansible_architecture == "x86_64"
169+
tags: curl

0 commit comments

Comments
 (0)