Skip to content

Commit 6b77d38

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 6b77d38

File tree

1 file changed

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

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,13 @@
9191
- brew_upgrade
9292

9393
- name: Install brew cu
94-
become: yes
95-
become_user: "{{ ansible_user }}"
9694
homebrew_tap:
9795
name: buo/cask-upgrade
9896
path: "{{ homebrew_path }}"
9997
tags:
10098
- brew_cu
10199

102100
- name: Add AdoptOpenJDK Java Repo
103-
become: yes
104-
become_user: "{{ ansible_user }}"
105101
homebrew_tap:
106102
name: AdoptOpenJDK/openjdk
107103
path: "{{ homebrew_path }}"
@@ -116,8 +112,6 @@
116112
- skip_ansible_lint
117113

118114
- name: Install Build Tool Packages
119-
become: yes
120-
become_user: "{{ ansible_user }}"
121115
homebrew:
122116
name: "{{ item }}"
123117
state: present
@@ -137,17 +131,13 @@
137131
register: cmake_local
138132

139133
- name: Install Cmake
140-
become: yes
141-
become_user: "{{ ansible_user }}"
142134
homebrew:
143135
name: "cmake"
144136
state: present
145137
tags: build_tools
146138
when: not (cmake_homebrew.stat.exists or cmake_local.stat.exists)
147139

148140
- name: Install Build Tool Packages NOT macOS 10.12
149-
become: yes
150-
become_user: "{{ ansible_user }}"
151141
homebrew:
152142
name: "{{ item }}"
153143
state: present
@@ -158,8 +148,6 @@
158148
tags: build_tools
159149

160150
- name: Install Build Tool Casks
161-
become: yes
162-
become_user: "{{ ansible_user }}"
163151
homebrew_cask:
164152
name: "{{ item }}"
165153
state: present
@@ -168,8 +156,6 @@
168156
tags: build_tools
169157

170158
- name: Install Test Tool Packages
171-
become: yes
172-
become_user: "{{ ansible_user }}"
173159
homebrew:
174160
name: "{{ item }}"
175161
state: present
@@ -178,8 +164,6 @@
178164
tags: test_tools
179165

180166
- name: Install JCK Tool Casks
181-
become: yes
182-
become_user: "{{ ansible_user }}"
183167
homebrew_cask:
184168
name: "{{ item }}"
185169
state: present

0 commit comments

Comments
 (0)