Browse Source

remote host mysql + typo import db

pull/1/head
theonlydoo 9 years ago
parent
commit
31ff0dea77
4 changed files with 5 additions and 4 deletions
  1. +1
    -0
      etc/host_vars/localhost.example
  2. +1
    -1
      roles/mail/tasks/main.yml
  3. +1
    -0
      roles/mail/templates/root-.my.cnf
  4. +2
    -3
      roles/mariadb/templates/root-.my.cnf

+ 1
- 0
etc/host_vars/localhost.example View File

@ -8,4 +8,5 @@ disable_ipv6: true
domain: test.net
mariadb_version: 10.0
mysql_root_password: changeme
mysql_host: localhost
# vim: set textwidth=0 ft=yaml:

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

@ -96,7 +96,7 @@
template: src=root-postfix.sql dest=/etc/postfix/ owner=root mode=655
- name: Create database for postfix
shell: mysql < /etc/postfix/postfix.sql
shell: mysql < /etc/postfix/root-postfix.sql
- name: Config amavis
copy: src=etc-amavis-conf.d-15-content_filter_mode dest=/etc/amavis/conf.d/15-content_filter_mode

+ 1
- 0
roles/mail/templates/root-.my.cnf View File

@ -1,4 +1,5 @@
[client]
host = {{ mysql_host }}
user = root
password = {{ rootpassword }}

+ 2
- 3
roles/mariadb/templates/root-.my.cnf View File

@ -1,6 +1,5 @@
# aaaaaaaaaaaaaa
[client]
[client]
host = {{ mysql_host }}
user = root
password = {{ rootpassword }}

Loading…
Cancel
Save