MonolithProjects / ansible-homebrew

Ansible Role to deploy Homebrew for Linux and to install formulae.

Home Page:https://galaxy.ansible.com/monolithprojects/homebrew

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Homebrew for Linux

Galaxy Quality Role version Role downloads GitHub Actions License

This Ansible Role will install Homebrew for Linux system and install formulae using it.

Requirements

  • System must have access to the GitHub.

Supported Linux Shells:

  • bash
  • fish
  • zsh

Supported CPU architectures:

  • AMD64, x86_64

Tested on:

  • CentOS/RHEL 8
  • Debian 10,11
  • Fedora 35
  • Rocky Linux 8
  • Ubuntu 18,20

Role Variables

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') }}"

Example Playbook

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

License

MIT

Author Information

Created in 2021 by Michal Muransky

About

Ansible Role to deploy Homebrew for Linux and to install formulae.

https://galaxy.ansible.com/monolithprojects/homebrew

License:MIT License