mirror of https://github.com/ansible/ansible.git
Enable to use greedy checks for outdated casks (#40799)
* Enable to use greedy checks for outdated casks When using brew cask outdated to check if an installed cask is outdated or not, brew cask will skip casks that have auto_updates set to true or version: latest. This means that Ansible tasks using the homebrew_cask module to upgrade packages installed by brew cask will miss upgrading such packages. However such packages can still be managed by brew cask so we need to be able detect such packages. This can be done with the --greedy flag passed to brew cask outdated as this will also include such packages that are outdated. This commit adds a greedy parameter to the homebrew_cask module to enable upgrading such packages using Ansible tasks with the homebrew_cask module. The default behavior preserves the same behavior as today. Example usage would be: - homebrew_cask: name: 1password state: upgraded update_homebrew: yes greedy: yes * Fix test issues * Add extra comma to match stylepull/41672/head
parent
16fb74ffb3
commit
f71ad4e315
Loading…
Reference in New Issue