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 | |
| 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')
| -rw-r--r-- | roles/homebrew/README.md | 7 | ||||
| -rw-r--r-- | roles/homebrew/meta/argument_specs.yml | 6 | ||||
| -rw-r--r-- | roles/homebrew/meta/main.yml | 21 | ||||
| -rw-r--r-- | roles/homebrew/tasks/main.yml | 43 |
4 files changed, 0 insertions, 77 deletions
diff --git a/roles/homebrew/README.md b/roles/homebrew/README.md deleted file mode 100644 index db948a04..00000000 --- a/roles/homebrew/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Ansible Role: homebrew - -This role installs homebrew package manager on Linux distributions - -## Role Variables - -- `homebrew_dependencies` the required system packages for homebrew installation (auto-configured per OS) diff --git a/roles/homebrew/meta/argument_specs.yml b/roles/homebrew/meta/argument_specs.yml deleted file mode 100644 index e275b4fc..00000000 --- a/roles/homebrew/meta/argument_specs.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -argument_specs: - main: - short_description: "Install homebrew package manager on Linux distributions" - description: "Install homebrew package manager on Linux distributions" - options: {} diff --git a/roles/homebrew/meta/main.yml b/roles/homebrew/meta/main.yml deleted file mode 100644 index bee48f06..00000000 --- a/roles/homebrew/meta/main.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -dependencies: - - role: "curl" - - role: "git" - - role: "gcc" -galaxy_info: - author: "a14m" - description: "Install homebrew package manager on Linux distributions" - company: "kartoffeln.work GmbH." - license: "MIT" - min_ansible_version: "2.18" - platforms: - - name: "ArchLinux" - versions: - - "all" - - name: "Ubuntu" - versions: - - "noble" - - name: "Debian" - versions: - - "bookworm" 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)" |
