def METHOD_NAME(self, event_data, host, task_result):
    """Print a json representation of the event_data on unreachable."""
    try:
        result_message = task_result.get(
            "msg", "No information given on unreachable warning."
        )
        ssl_ansible_auth_error = (
            result_message is not None
            and "permission denied" in result_message.lower()
        )
        if not ssl_ansible_auth_error:
            # host is unreachable
            self.result_store.record_result(
                host,
                self.source,
                self.credential,
                SystemConnectionResult.UNREACHABLE,
            )
        else:
            # invalid creds
            self.result_store.scan_task.log_message(
                log_messages.TASK_PERMISSION_DENIED % (host, self.credential.name)
            )
        logger.debug("%s", {"host": host, "result": task_result})
    except Exception as error:
        self.result_store.scan_task.log_message(
            log_messages.TASK_UNEXPECTED_FAILURE
            % ("task_on_unreachable", error, event_data),
            log_level=logging.ERROR,
        )
        traceback.print_exc()
        raise error