From e90265e716a23b65750cd0b099911f9fb3257ab9 Mon Sep 17 00:00:00 2001 From: Daniel Jaouen <dcj24@cornell.edu> Date: Fri, 1 Jun 2018 11:43:04 -0400 Subject: [PATCH] homebrew_tap: fixes #40853 (#40863) --- lib/ansible/modules/packaging/os/homebrew_tap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/homebrew_tap.py b/lib/ansible/modules/packaging/os/homebrew_tap.py index 51c5acabcd9..f3affe934ff 100644 --- a/lib/ansible/modules/packaging/os/homebrew_tap.py +++ b/lib/ansible/modules/packaging/os/homebrew_tap.py @@ -111,7 +111,7 @@ def add_tap(module, brew_path, tap, url=None): tap, url, ]) - if already_tapped(module, brew_path, tap): + if rc == 0: changed = True msg = 'successfully tapped: %s' % tap else: