log on target based on nolog, not verbosity

fies #18569

(cherry picked from commit b1cefcf176)
This commit is contained in:
Brian Coca 2016-11-21 15:03:25 -05:00
parent 1bdf25561a
commit e1b459470d

View file

@ -715,7 +715,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