Skip to content

Commit

Permalink
unixPB: removes become for brew installs in macos - > common task
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
mahdipub committed Sep 30, 2024
1 parent d483066 commit 8602287
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,13 @@
register: cmake_local

- name: Install Cmake
become: yes
become_user: "{{ ansible_user }}"
homebrew:
name: "cmake"
state: present
tags: build_tools
when: not (cmake_homebrew.stat.exists or cmake_local.stat.exists)

- name: Install Build Tool Packages NOT macOS 10.12
become: yes
become_user: "{{ ansible_user }}"
homebrew:
name: "{{ item }}"
state: present
Expand All @@ -158,8 +154,6 @@
tags: build_tools

- name: Install Build Tool Casks
become: yes
become_user: "{{ ansible_user }}"
homebrew_cask:
name: "{{ item }}"
state: present
Expand All @@ -168,8 +162,6 @@
tags: build_tools

- name: Install Test Tool Packages
become: yes
become_user: "{{ ansible_user }}"
homebrew:
name: "{{ item }}"
state: present
Expand All @@ -178,8 +170,6 @@
tags: test_tools

- name: Install JCK Tool Casks
become: yes
become_user: "{{ ansible_user }}"
homebrew_cask:
name: "{{ item }}"
state: present
Expand Down

0 comments on commit 8602287

Please sign in to comment.