fix mariadb clean
This commit is contained in:
parent
06b7fcd3a4
commit
e6e331ff7b
@ -84,8 +84,7 @@
|
|||||||
|
|
||||||
- name: run initial cleanup
|
- name: run initial cleanup
|
||||||
shell: |
|
shell: |
|
||||||
mysql
|
mariadb
|
||||||
--defaults-extra-file /root/mdb_local.cnf
|
|
||||||
--no-auto-rehash
|
--no-auto-rehash
|
||||||
< /root/secure_install.sql
|
< /root/secure_install.sql
|
||||||
when: mdb_install.changed
|
when: mdb_install.changed
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
DELETE FROM mysql.user WHERE User='{{ mariadb_root_user }}' AND Host NOT IN ('localhost', '127.0.0.1', '::1');
|
DELETE FROM mysql.user WHERE User='{{ mariadb_root_user }}' AND Host NOT IN ('localhost', '127.0.0.1', '::1');
|
||||||
DROP DATABASE IF EXISTS test;
|
DROP DATABASE IF EXISTS test;
|
||||||
DELETE FROM mysql.db WHERE Db='test' OR Db='test_%'
|
DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
Loading…
Reference in New Issue
Block a user