danbohea.cask-app
Ansible Role: Homebrew Cask App
This Ansible role helps you install Homebrew Cask apps on macOS.
- You can run this role multiple times in your playbook, providing different information each time.
- Each Ansible task installs one cask app.
- You can add tags to each task that installs a cask app.
Requirements
- macOS version 10.13 or higher
- Ansible version 2.2 or higher
* Note: You need a newer version of Python than what comes with macOS.
Role Variables
# The name of the app you want to install as it is specified for Homebrew Cask.
cask_app_name: ""
# Any installation options you want to send to Homebrew Cask.
cask_app_install_options: ""
Dependencies
Example Playbook
- hosts: all
roles:
# Basic example.
- {
cask_app_name: firefox,
role: ansible-role-cask-app
}
# Example using tags.
- {
cask_app_name: firefox,
tags: ["firefox", "another_tag"],
role: ansible-role-cask-app
}
# Example using cask_app_install_options.
- {
cask_app_name: firefox,
cask_app_install_options: force,
role: ansible-role-cask-app
}
License
MIT
Author Information
This role was created by Dan Bohea mostly for use with Macsible.