community / community.general / 0.1.1 / module / homebrew_cask Install and uninstall homebrew casks. Authors: Indrajit Raychaudhuri (@indrajitr), Daniel Jaouen (@danieljaouen), Enric Lluelles (@enriclluelles) preview | supported by communitycommunity.general.homebrew_cask (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Manages Homebrew casks.
- name: Install cask homebrew_cask: name: alfred state: present
- name: Remove cask homebrew_cask: name: alfred state: absent
- name: Install cask with install options homebrew_cask: name: alfred state: present install_options: 'appdir=/Applications'
- name: Install cask with install options homebrew_cask: name: alfred state: present install_options: 'debug,appdir=/Applications'
- name: Allow external app homebrew_cask: name: alfred state: present accept_external_apps: True
- name: Remove cask with force option homebrew_cask: name: alfred state: absent install_options: force
- name: Upgrade all casks homebrew_cask: upgrade_all: true
- name: Upgrade given cask with force option homebrew_cask: name: alfred state: upgraded install_options: force
- name: Upgrade cask with greedy option homebrew_cask: name: 1password state: upgraded greedy: True
- name: Using sudo password for installing cask homebrew_cask: name: wireshark state: present sudo_password: "{{ ansible_become_pass }}"
name: aliases: - pkg - package - cask description: - Name of cask to install or remove. required: true type: list path: default: /usr/local/bin description: - ''':'' separated list of paths to search for ''brew'' executable.' type: path state: choices: - present - absent - upgraded default: present description: - State of the cask. type: str greedy: default: 'no' description: - Upgrade casks that auto update. - Passes --greedy to brew cask outdated when checking if an installed cask has a newer version available. type: bool upgrade_all: aliases: - upgrade default: 'no' description: - Upgrade all casks. - Mutually exclusive with C(upgraded) state. type: bool sudo_password: description: - The sudo password to be passed to SUDO_ASKPASS. required: false type: str install_options: aliases: - options description: - Options flags to install a package. type: list update_homebrew: aliases: - update-brew default: 'no' description: - Update homebrew itself first. - Note that C(brew cask update) is a synonym for C(brew update). type: bool accept_external_apps: default: 'no' description: - Allow external apps. type: bool