Install Software with Homebrew in Ansible

Red Hat Ansible Red Hat Ansible

Pretty cool! I started automating my macOS setup and discovered that mighty Ansible ecosystem has even Homebrew automation!

Example of Homebrew Cask in Ansible

Here’s how I can install Brave browser using homebrew_cask module:

- name: Install Brave for macOS 
  become_user: greys
  homebrew_cask: 
	name: brave-browser
	state: latest
  tags:
	- brave
  when:
	ansible_os_family == "Darwin"

See Also




Contact Me

Follow me on Facebook, Twitter or Telegram:
Recommended
I learn with Educative: Educative
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
03 Sep 2024

macOS Sequoia 15.0

02 Sep 2024

Video: Has This Worked Before?

24 Mar 2024

Homelab: Mac Pro 2013 32GB

Recent Tweets