From 5f39caa398a526f6c037186db87ddb620a05231b Mon Sep 17 00:00:00 2001 From: theonlydoo Date: Sun, 9 Nov 2014 12:22:03 +0100 Subject: [PATCH] drop de test, pour valider le playbook de bout en bout --- roles/mail/templates/root-postfix.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/mail/templates/root-postfix.sql b/roles/mail/templates/root-postfix.sql index 00c8c91..ff4bafa 100644 --- a/roles/mail/templates/root-postfix.sql +++ b/roles/mail/templates/root-postfix.sql @@ -1,4 +1,6 @@ +DROP DATABASE IF EXISTS postfix; +DROP USER 'postfix'@'%'; CREATE DATABASE postfix; -GRANT ALL PRIVILEGES ON postfix.* TO 'postfix_admin'@'%' IDENTIFIED BY '{{ dbpassword.stdout }}'; +GRANT ALL PRIVILEGES ON postfix.* TO 'postfix'@'%' IDENTIFIED BY '{{ dbpassword.stdout }}'; GRANT SELECT ON postfix.* TO 'postfix'@'%' IDENTIFIED BY '{{ dbpassword.stdout }}'; FLUSH PRIVILEGES;