Speed up brew module package install & upgrade (#9022)

* Verify installation via `brew install` return code in`_install_current_package` (Skip one brew info)

* Avoid computing `current_package_is_installed` twice in a row

* Verify installation via `brew install` return code in  `_upgrade_current_package(Skip 2 brew commands)

* Add changelog fragment

* Update changelogs/fragments/9022-improve-homebrew-perf.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Thibaut Decombe 2024-10-19 12:50:46 +02:00 committed by GitHub
commit 86166ccade
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- homebrew - speed up brew install and upgrade (https://github.com/ansible-collections/community.general/pull/9022).