25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- ---
- - name: Installing required Python mysqldb module for Ansible to manage databases
- apt: pkg=python-mysqldb state=installed
- - name: creating mailserver MySQL database
- mysql_db: name=mailserver state=present
- - name: copying MySQL database schema to server
- 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: creating MySQL user to read the mailserver database
- 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
|