Browse Source

database creation fixed

pull/1/head
theonlydoo 9 years ago
parent
commit
f173cb3be7
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      roles/mail/templates/root-postfix.sql
  2. +1
    -1
      roles/mariadb/tasks/main.yml

+ 2
- 2
roles/mail/templates/root-postfix.sql View File

@ -1,4 +1,4 @@
CREATE DATABASE postfix;
GRANT ALL PRIVILEGES ON postfix.* TO 'postfix_admin'@'%' IDENTIFIED BY '{{ dbpassword }}';
GRANT SELECT ON postfix.* TO 'postfix'@'%' IDENTIFIED BY '{{ dbpassword }}';
GRANT ALL PRIVILEGES ON postfix.* TO 'postfix_admin'@'%' IDENTIFIED BY '{{ dbpassword.stdout }}';
GRANT SELECT ON postfix.* TO 'postfix'@'%' IDENTIFIED BY '{{ dbpassword.stdout }}';
FLUSH PRIVILEGES;

+ 1
- 1
roles/mariadb/tasks/main.yml View File

@ -1,6 +1,6 @@
---
- name: MySQL already installed ?
shell: dpkg -l|grep mysql|grep -iq serv
shell: dpkg -l|egrep "mysql|mariadb"|grep -iq serv
ignore_errors: true
register: mysql

Loading…
Cancel
Save