ansible-collection-mac icon indicating copy to clipboard operation
ansible-collection-mac copied to clipboard

Homebrew cask install if app exists but not installed by homebrew

Open dspolleke opened this issue 2 years ago • 0 comments

This may be something to be fixed upstream by homebrew, but it breaks the flow of the playbook so we may have to workaround around this issue.

failed: [127.0.0.1] (item=viscosity) => changed=false ansible_loop_var: item item: viscosity msg: |- Runningbrew update --auto-update... ==> Auto-updated Homebrew! Updated 3 taps (homebrew/core, homebrew/cask and homebrew/services). ==> New Formulae ---------stuff------------ Error: It seems there is already an App at '/Applications/Viscosity.app'.

It would be handy to either

  • ignore errors for installations (so the playbook continues even if one item fails)
  • check and skip if /Applications/{{ item }}.app allready exists. (this will break updating)

dspolleke avatar Sep 01 '22 13:09 dspolleke