diff --git a/lib/ansible/modules/database/mysql/mysql_user.py b/lib/ansible/modules/database/mysql/mysql_user.py index 754fd14aac4..d511b808131 100644 --- a/lib/ansible/modules/database/mysql/mysql_user.py +++ b/lib/ansible/modules/database/mysql/mysql_user.py @@ -184,7 +184,7 @@ def server_version_check(cursor): # Currently we have no facility to handle new-style password update on # mariadb and the old-style update continues to work - if version_str.lower().endswith('mariadb'): + if 'mariadb' in version_str.lower(): return True if (int(version[0]) <= 5 and int(version[1]) < 7): return True