Skip to content

Update ansible to fix Homebrew breaking change

Adrien Kohlbecker requested to merge ak/fix-homebrew into master

Closes #48 (closed)

Recently, homebrew made a breaking change that is making pipelines fail with

TASK [geerlingguy.homebrew : Install configured cask applications.] ************
Tuesday 12 January 2021  13:46:25 +0000 (0:00:00.041)       0:12:03.221 ******* 
failed: [runners-macos-ci-955472301] (item=powershell) => changed=false 
  ansible_loop_var: item
  item: powershell
  msg: |-
    Updating Homebrew...
    Error: Calling brew cask install is disabled! Use brew install [--cask] instead.

This is tracked here https://github.com/geerlingguy/ansible-role-homebrew/issues/155 which point to this upstream issue https://github.com/ansible-collections/community.general/issues/1524. The problem was fixed in ansible 2.10.5

You can see a fixed pipeline here https://gitlab.com/gitlab-org/ci-cd/shared-runners/images/macstadium/orka/-/jobs/958131077

Edited by Adrien Kohlbecker

Merge request reports