Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

30 Zeilen
1.5 KiB

  1. ---
  2. - name: Installing required Python mysqldb module for Ansible to manage databases
  3. apt: pkg=python-mysqldb state=installed
  4. # - name: Creating my-cnf for root user
  5. # template: src=root-my-cnf.j2 dest=/root/.my.cnf mode=0600
  6. - name: creating mailserver MySQL database
  7. mysql_db: name=mailserver state=present
  8. - name: creating Roundcube MySQL database
  9. mysql_db: name=roundcube state=present
  10. - name: copying MySQL database schema to server
  11. copy: src=schema.sql dest=/tmp
  12. - name: setting up SQL schema of mailserver database
  13. mysql_db: name=mailserver state=import target=/tmp/schema.sql
  14. # - name: set the MySQL root user's password
  15. # mysql_user: name=root password={{ispmail_mysql_root_password}} state=present
  16. - name: creating MySQL user to read the mailserver database
  17. mysql_user: name=mailuser password={{ispmail_mysql_mailuser_password}} priv=mailserver.*:SELECT,INSERT,UPDATE,DELETE state=present
  18. - name: creating MySQL user for roundcube
  19. mysql_user: name=roundcube password={{ispmail_mysql_roundcube_password}} priv=roundcube.*:ALL state=present
  20. - name: copying MySQL test data to server
  21. copy: src=test.sql dest=/tmp
  22. when: ispmail_populate_test_data == true
  23. - name: populating the database with test data
  24. mysql_db: name=mailserver state=import target=/tmp/test.sql
  25. when: ispmail_populate_test_data == true
  26. # - name: set the MySQL root user's password
  27. # mysql_user: name=root password={{ispmail_mysql_root_password}} state=present
  28. # - name: Create root's .my.cnf
  29. # template: src=my-cnf.j2 dest=/root/.my.cnf mode=0600