ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
792 stars 1.46k forks source link

Homebrew modules improvements #5792

Open Caesarovich opened 1 year ago

Caesarovich commented 1 year ago

Summary

I would like to have more information via the return values in the homebrew module. For exemples, the upgraded + old versions of packages (Useful when running updates) to know which version has now been installed.

Also I would love to have a new module / include to the current existing ones to run brew cleanup commands to remove cached files, and retrieve the information about that as well.

Does that seem like good ideas ? If so I'll make a PR later on

Issue Type

Feature Idea

Component Name

homebrew

Additional Information

# Remove stale lock files and outdated downloads for all formulae and casks, and remove old versions of installed formulae
# Also Remove all cache files older than 7 days
- community.general.homebrew_cleanup:
    prune: 7

Code of Conduct

ansibullbot commented 1 year ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 1 year ago

cc @Akasurde @danieljaouen @indrajitr @kyleabenson @martinm82 click here for bot help