You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if the behavior changed when brew cask was deprecated, but brew upgrade --cask does not write anything to stdout if no packages are upgraded.
The homebrew module handles this by checking to see if stdout is blank. See here.
Summary
When setting
upgrade_all: true
on the homebrew_cask module, the task always returns 'changed'The issue is here.
I'm not sure if the behavior changed when
brew cask
was deprecated, butbrew upgrade --cask
does not write anything tostdout
if no packages are upgraded.The
homebrew
module handles this by checking to see ifstdout
is blank. See here.Issue Type
Bug Report
Component Name
homebrew_cask
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
macOS Sonoma 14.6
Steps to Reproduce
Expected Results
Task should not return changed if no packages are updated.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: