Skip to content

Commit 8602287

Browse files
committed
unixPB: removes become for brew installs in macos - > common task
In macos when installing using brew and using a root/powered user, an error will show by brew: `Running Homebrew as root is extremely dangerous and no longer supported.`. In general we do not need `become` when installing with brew. This will remove become in common > macos brew installations. Signed-off-by: [email protected]
1 parent d483066 commit 8602287

File tree

1 file changed

+0
-10
lines changed
  • ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks

1 file changed

+0
-10
lines changed

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/tasks/MacOSX.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,13 @@
137137
register: cmake_local
138138

139139
- name: Install Cmake
140-
become: yes
141-
become_user: "{{ ansible_user }}"
142140
homebrew:
143141
name: "cmake"
144142
state: present
145143
tags: build_tools
146144
when: not (cmake_homebrew.stat.exists or cmake_local.stat.exists)
147145

148146
- name: Install Build Tool Packages NOT macOS 10.12
149-
become: yes
150-
become_user: "{{ ansible_user }}"
151147
homebrew:
152148
name: "{{ item }}"
153149
state: present
@@ -158,8 +154,6 @@
158154
tags: build_tools
159155

160156
- name: Install Build Tool Casks
161-
become: yes
162-
become_user: "{{ ansible_user }}"
163157
homebrew_cask:
164158
name: "{{ item }}"
165159
state: present
@@ -168,8 +162,6 @@
168162
tags: build_tools
169163

170164
- name: Install Test Tool Packages
171-
become: yes
172-
become_user: "{{ ansible_user }}"
173165
homebrew:
174166
name: "{{ item }}"
175167
state: present
@@ -178,8 +170,6 @@
178170
tags: test_tools
179171

180172
- name: Install JCK Tool Casks
181-
become: yes
182-
become_user: "{{ ansible_user }}"
183173
homebrew_cask:
184174
name: "{{ item }}"
185175
state: present

0 commit comments

Comments
 (0)