You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
584 B

  1. ---
  2. - name: Installing required Python mysqldb module for Ansible to manage databases
  3. apt: pkg=python-mysqldb state=installed
  4. - name: creating mailserver MySQL database
  5. mysql_db: name=mailserver state=present
  6. - name: copying MySQL database schema to server
  7. copy: src=schema.sql dest=/tmp
  8. - name: setting up SQL schema of mailserver database
  9. mysql_db: name=mailserver state=import target=/tmp/schema.sql
  10. - name: creating MySQL user to read the mailserver database
  11. mysql_user: name=mailuser password={{ispmail_mysql_mailuser_password}} priv=mailserver.*:SELECT state=present