|
|
@@ -9,4 +9,10 @@ |
|
|
mysql_db: name=mailserver state=import target=/tmp/schema.sql |
|
|
mysql_db: name=mailserver state=import target=/tmp/schema.sql |
|
|
- name: creating MySQL user to read the mailserver database |
|
|
- name: creating MySQL user to read the mailserver database |
|
|
mysql_user: name=mailuser password={{ispmail_mysql_mailuser_password}} priv=mailserver.*:SELECT state=present |
|
|
mysql_user: name=mailuser password={{ispmail_mysql_mailuser_password}} priv=mailserver.*:SELECT state=present |
|
|
|
|
|
- name: copying MySQL test data to server |
|
|
|
|
|
copy: src=test.sql dest=/tmp |
|
|
|
|
|
when: ispmail_populate_test_data == true |
|
|
|
|
|
- name: populating the database with test data |
|
|
|
|
|
mysql_db: name=mailserver state=import target=/tmp/test.sql |
|
|
|
|
|
when: ispmail_populate_test_data == true |
|
|
|
|
|
|