'log that ansible ran the module'

def _log_invocation(self):

    log_args = dict()
    for param in self.params:
        canon = self.aliases.get(param, param)
        arg_opts = self.argument_spec.get(canon, {})
        no_log = arg_opts.get('no_log', False)
        if self.boolean(no_log):
            log_args[param] = 'NOT_LOGGING_PARAMETER'
        elif (PASSWORD_MATCH.search(param) and (arg_opts.get('type', 'str') != 'bool') and (not arg_opts.get('choices', False))):
            log_args[param] = 'NOT_LOGGING_PASSWORD'
            self.warn(('Module    did    not    set    no_log    for    %s' % param))
        else:
            param_val = self.params[param]
            if (not isinstance(param_val, (text_type, binary_type))):
                param_val = str(param_val)
            elif isinstance(param_val, text_type):
                param_val = param_val.encode('utf-8')
            log_args[param] = heuristic_log_sanitize(param_val, self.no_log_values)
    msg = [('%s=%s' % (to_native(arg), to_native(val))) for (arg, val) in log_args.items()]
    if msg:
        msg = ('Invoked    with    %s' % '    '.join(msg))
    else:
        msg = 'Invoked'
    self.log(msg, log_args=log_args)
