Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

brew cask install is deprecated in favour of brew install --cask #155

Closed
emilecantin opened this issue Dec 21, 2020 · 6 comments
Closed

Comments

@emilecantin
Copy link

At the moment, I can't install any Casks using the role; I get errors like these:

failed: [127.0.0.1] (item=balenaetcher) => {"ansible_loop_var": "item", "changed": false, "item": "balenaetcher", "msg": "Error: Calling brew cask install is disabled! Use brew install [--cask] instead."}

Looks like Homebrew themselves deprecated the brew cask install command in the latest version.

I'd submit a PR, but I'm relatively new to ansible and really can't understand how the install command is generated, so a bug report will have to do.

@tslmy
Copy link

tslmy commented Dec 22, 2020

Blocked by ansible-collections/community.general#1524.

@geerlingguy
Copy link
Owner

Thanks; marking this appropriately so people see it more easily.

This will also affect Ansible 2.9 and earlier (for those locked into older versions).

@rmchale
Copy link

rmchale commented Dec 30, 2020

Is there a work around?

@qwerbzuio
Copy link

Blocked by ansible-collections/community.general#1524.

Just a note that the blocking issue is now closed.

@tslmy
Copy link

tslmy commented Jan 4, 2021

You can install community.general from HEAD to get this working right now: ansible-galaxy collection install --force git+https://github.com/ansible-collections/community.general.git

Tested locally.

@geerlingguy
Copy link
Owner

This should be working now, as the latest Ansible releases include it :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants