Skip to content

dixhuit/ansible-role-cask-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role: Homebrew Cask app

Build Status

An Ansible role for installing Homebrew Cask apps on macOS.

  • Run the role any number of times in your playbook, passing in different data each time.
  • Install one cask app per Ansible task.
  • Associate Ansible tags with each cask app installation task.

Requirements

  • macOS 10.13
  • Ansible >= 2.2.

* Requires more up to date python than is shipped with macOS.

Role Variables

# The name of the app you wish to install as it would be specified for Homebrew Cask.
cask_app_name: ""

# Any installation options that need to be passed to Homebrew Cask.
cask_app_install_options: ""

Dependencies

Example Playbook

- hosts: all

  roles:
    # Minimal 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 primarily for use with Macsible.