diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 8c89644c814..3c31d0c68b8 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -672,6 +672,7 @@ class AnsibleModule(object): see library/* for examples ''' + self._name = os.path.basename(__file__) #initialize name until we can parse from options self.argument_spec = argument_spec self.supports_check_mode = supports_check_mode self.check_mode = False @@ -751,7 +752,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