from __future__ import (absolute_import, division, print_function) __metaclass__ = type from distutils.version import LooseVersion from ansible_collections.community.mysql.plugins.module_utils.mysql import get_server_version def supports_roles(cursor): version = get_server_version(cursor) return LooseVersion(version) >= LooseVersion('8') def is_mariadb(): return False