community.general
community.general copied to clipboard
homebrew: Add force_formula parameter to pass --formula to brew command
SUMMARY
Fixes #8274.
Some formulas have names that are also cask formulas (e.g. docker). When trying to install such a formula, brew prints a warning and returns a non-zero exit code. This causes Ansible to halt and report the failure. By allowing the task to set force_formula, we can sidestep this problem.
ISSUE TYPE
- Feature Pull Request
COMPONENT NAME
homebrew
ADDITIONAL INFORMATION
cc @Akasurde @andrew-d @danieljaouen @indrajitr @kyleabenson @martinm82 click here for bot help
Odd! As far as I can tell, the third-party-check error doesn't seem to have anything to do with my changes. I'll rebase and try again...
@kitizz this PR contains the following merge commits:
- https://github.com/ansible-collections/community.general/commit/035a8d32bb8b76260dcdd726590d4c33614798c8
Please rebase your branch to remove these commits.
The third-party-check always fails, please ignore it. But you're having some strange unrelated commits / changes in your branch now.
Yup, apologies for that. I have muscle memories from previous rebase workflows that were different 😅 Should be good now...
Looks good to me! Will merge in ~a week if nobody objects.
@kitizz thanks for your contribution!