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 | |
| 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
| -rw-r--r-- | configure.yml | 2 | ||||
| -rw-r--r-- | molecule/archlinux/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/debian/converge.yml | 1 | ||||
| -rw-r--r-- | molecule/ubuntu/converge.yml | 1 | ||||
| -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 |
8 files changed, 0 insertions, 82 deletions
diff --git a/configure.yml b/configure.yml index 6da938b5..de84c5b5 100644 --- a/configure.yml +++ b/configure.yml @@ -7,7 +7,6 @@ - role: "locales" - role: "timezone" - role: "wireguard" - - role: "homebrew" - role: "python" - role: "go" - role: "docker" @@ -23,7 +22,6 @@ - role: "locales" - role: "timezone" - role: "wireguard" - - role: "homebrew" - role: "python" - role: "go" - role: "docker" diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml index 2e810013..15573ad5 100644 --- a/molecule/archlinux/converge.yml +++ b/molecule/archlinux/converge.yml @@ -27,7 +27,6 @@ - role: "timezone" - role: "wireguard" - role: "gateway" - - role: "homebrew" - role: "python" - role: "go" - role: "docker" diff --git a/molecule/debian/converge.yml b/molecule/debian/converge.yml index c92b57be..0ff7daa1 100644 --- a/molecule/debian/converge.yml +++ b/molecule/debian/converge.yml @@ -38,7 +38,6 @@ - role: "timezone" - role: "wireguard" - role: "gateway" - - role: "homebrew" - role: "python" - role: "go" - role: "docker" diff --git a/molecule/ubuntu/converge.yml b/molecule/ubuntu/converge.yml index 0ee35653..3412e04c 100644 --- a/molecule/ubuntu/converge.yml +++ b/molecule/ubuntu/converge.yml @@ -27,7 +27,6 @@ - role: "timezone" - role: "wireguard" - role: "gateway" - - role: "homebrew" - role: "python" - role: "go" - role: "docker" 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)" |
