瀏覽代碼

external mysql server

master
父節點
當前提交
3da30ba7a8
共有 3 個文件被更改,包括 3 次插入2 次删除
  1. +0
    -1
      defaults/main.yml
  2. +2
    -0
      tasks/main.yml
  3. +1
    -1
      templates/dbconfig.inc.php.j2

+ 0
- 1
defaults/main.yml 查看文件

@@ -1,3 +1,2 @@
postfixadmin_mysql_database: postfixadmin
postfixadmin_mysql_username: postfixadmin
postfixadmin_mysql_password: eehahhoaQuai3oomochep7ca

+ 2
- 0
tasks/main.yml 查看文件

@@ -4,6 +4,7 @@
mysql_db:
name: "{{postfixadmin_mysql_database}}"
state: present
delegate_to: "{{postfixadmin_mysql_host}}"

- name: mysql user
mysql_user:
@@ -11,6 +12,7 @@
password: "{{postfixadmin_mysql_password}}"
priv: "{{postfixadmin_mysql_database}}.*:ALL,GRANT"
state: present
delegate_to: "{{postfixadmin_mysql_host}}"

- name: disable dbconfig
debconf:


+ 1
- 1
templates/dbconfig.inc.php.j2 查看文件

@@ -13,6 +13,6 @@ $dbuser='{{postfixadmin_mysql_username}}';
$dbpass='{{postfixadmin_mysql_password}}';
$basepath='';
$dbname='{{postfixadmin_mysql_database}}';
$dbserver='localhost';
$dbserver='{{postfixadmin_mysql_host}}';
$dbport='3306';
$dbtype='mysqli';

Loading…
取消
儲存