log on target based on nolog, not verbosity

fies #18569
This commit is contained in:
Brian Coca 2016-11-21 15:03:25 -05:00
parent ca1514cf2a
commit b1cefcf176

View file

@ -751,7 +751,7 @@ class AnsibleModule(object):
self._set_defaults(pre=False)
if not self.no_log and self._verbosity >= 3:
if not self.no_log:
self._log_invocation()
# finally, make sure we're in a sane working dir