mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 02:41:25 -07:00
homebrew: Honor update_homebrew value (#112)
Added environment variable to honor update_homebrew argument specified by user. Fixes: ansible/ansible#56650 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
e33893869a
commit
645fe91fa3
3 changed files with 6 additions and 8 deletions
|
@ -941,6 +941,10 @@ def main():
|
|||
state = 'absent'
|
||||
|
||||
update_homebrew = p['update_homebrew']
|
||||
if not update_homebrew:
|
||||
module.run_command_environ_update.update(
|
||||
dict(HOMEBREW_NO_AUTO_UPDATE="True")
|
||||
)
|
||||
upgrade_all = p['upgrade_all']
|
||||
p['install_options'] = p['install_options'] or []
|
||||
install_options = ['--{0}'.format(install_option)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue