Przeglądaj źródła

Set a MySQL root password.

merge-requests/1/merge
Christoph Haas 10 lat temu
rodzic
commit
af0c35c175
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      roles/ispmail-database/tasks/main.yml

+ 2
- 1
roles/ispmail-database/tasks/main.yml Wyświetl plik

@@ -7,6 +7,8 @@
copy: src=schema.sql dest=/tmp
- name: setting up SQL schema of mailserver database
mysql_db: name=mailserver state=import target=/tmp/schema.sql
- name: set the MySQL root user's password
mysql_user: name=root password={{ispmail_mysql_root_password}} state=present
- name: creating MySQL user to read the mailserver database
mysql_user: name=mailuser password={{ispmail_mysql_mailuser_password}} priv=mailserver.*:SELECT,INSERT,UPDATE,DELETE state=present
- name: copying MySQL test data to server
@@ -15,4 +17,3 @@
- name: populating the database with test data
mysql_db: name=mailserver state=import target=/tmp/test.sql
when: ispmail_populate_test_data == true


Ładowanie…
Anuluj
Zapisz