From b843a528bef47c276de9b85117e2d6ad7bf1ce6e Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 17 Apr 2018 10:24:47 +0200 Subject: [PATCH] mysql: abort if MariaDB on Debian 8 We can't create other users with 'debian-sys-maint' on Debian 8 with MariaDB. We must give it the GRANT privilege before continuing. --- mysql/tasks/users_jessie.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mysql/tasks/users_jessie.yml b/mysql/tasks/users_jessie.yml index 7f4eec06..f11e41af 100644 --- a/mysql/tasks/users_jessie.yml +++ b/mysql/tasks/users_jessie.yml @@ -1,5 +1,10 @@ --- +- name: "Abort if MariaDB on Debian 8" + fail: + msg: "We can't create other users with 'debian-sys-maint' on Debian 8 with MariaDB.\nWe must give it the GRANT privilege before continuing." + when: mysql_variant == "mariadb" + # dependency for mysql_user and mysql_db - name: python-mysqldb is installed (Ansible dependency)