diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-10-19 22:07:34 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-10-20 00:12:22 +0200 |
| commit | 54d644bab1ef9cd8663d3366b1b3c94f57f5b945 (patch) | |
| tree | 25070549a6d51d3f739a909798882039a9aac326 /roles/homebrew/tasks | |
| parent | 5488d45efdea22ebb269e767145a6f26d7bc2dbb (diff) | |
Remove homebrew for linux as it's not that useful
The roles sometimes fail to install, and on linux it cannot be used with
casks which is defeating the purpose of having it to manage apps and
packages
Diffstat (limited to 'roles/homebrew/tasks')
| -rw-r--r-- | roles/homebrew/tasks/main.yml | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/roles/homebrew/tasks/main.yml b/roles/homebrew/tasks/main.yml deleted file mode 100644 index 9d3f1701..00000000 --- a/roles/homebrew/tasks/main.yml +++ /dev/null @@ -1,43 +0,0 @@ ---- -- name: "Check if homebrew is already installed" - ansible.builtin.stat: - path: "/home/linuxbrew/.linuxbrew/bin/brew" - register: homebrew_binary_check - -- name: "Install homebrew" - when: not homebrew_binary_check.stat.exists - block: - - name: "Create linuxbrew directory" - become: true - ansible.builtin.file: - path: "/home/linuxbrew" - state: directory - owner: "{{ ansible_user_id }}" - group: "{{ ansible_user_id }}" - mode: "0755" - - - name: "Download homebrew installer" - ansible.builtin.get_url: - url: "https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh" - dest: "/tmp/install_homebrew.sh" - mode: "0755" - - - name: "Run homebrew installer" - ansible.builtin.command: - cmd: "/tmp/install_homebrew.sh" - args: - creates: "/home/linuxbrew/.linuxbrew/bin/brew" - environment: - NONINTERACTIVE: "1" - -- name: "Add homebrew to shell profile" - ansible.builtin.blockinfile: - path: "{{ ansible_env.HOME }}/.bashrc" - state: "present" - prepend_newline: true - append_newline: true - marker: "# ==== {mark} ANSIBLE HOMEBREW CONFIG" - create: true - mode: "0644" - block: | - eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" |
