This Ansible Role will install Homebrew for Linux system and install formulae using it.
- System must have access to the GitHub.
- bash
- fish
- zsh
- AMD64, x86_64
- CentOS/RHEL 8
- Debian 10,11
- Fedora 35
- Rocky Linux 8
- Ubuntu 18,20
This is a copy from defaults/main.yml
# Homebrew packages to be installed
brew_formulae: []
# Homebrew git repo
homebrew_git_repo: "https://github.com/Homebrew/brew"
# Homebrew release (default is the master github repo)
homebrew_release: "master"
# Homebrew user
homebrew_user: "{{ lookup('env', 'USER') }}"
In this example ...
---
- name: Install Homebrew and aws-vault using homebrew
hosts: all
user: mike
become: yes
vars:
brew_formulae:
- aws-vault
roles:
- role: monolithprojects.homebrew
MIT
Created in 2021 by Michal Muransky