This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
LecygneNoir
/
ansible-configz
mirror of
https://github.com/theonlydoo/configz
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
database creation fixed
pull/1/head
theonlydoo
9 years ago
parent
930f807faa
commit
f173cb3be7
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
roles/mail/templates/root-postfix.sql
+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|
e
grep
"
mysql
|mariadb"
|grep -iq serv
ignore_errors
:
true
register
:
mysql
Write
Preview
Loading…
Cancel
Save