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.
 
 
 
 
 
 

26 Zeilen
1.3 KiB

  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: creating Roundcube MySQL database
  7. mysql_db: name=roundcube state=present
  8. - name: copying MySQL database schema to server
  9. copy: src=schema.sql dest=/tmp
  10. - name: setting up SQL schema of mailserver database
  11. mysql_db: name=mailserver state=import target=/tmp/schema.sql
  12. - name: creating MySQL user to read the mailserver database
  13. mysql_user: name=mailuser password={{ispmail_mysql_mailuser_password}} priv=mailserver.*:SELECT,INSERT,UPDATE,DELETE state=present
  14. - name: creating MySQL user for roundcube
  15. mysql_user: name=roundcube password={{ispmail_mysql_roundcube_password}} priv=roundcube.*:ALL state=present
  16. - name: copying MySQL test data to server
  17. copy: src=test.sql dest=/tmp
  18. when: ispmail_populate_test_data == true
  19. - name: populating the database with test data
  20. mysql_db: name=mailserver state=import target=/tmp/test.sql
  21. when: ispmail_populate_test_data == true
  22. # - name: set the MySQL root user's password
  23. # mysql_user: name=root password={{ispmail_mysql_root_password}} state=present
  24. # - name: Create root's .my.cnf
  25. # template: src=my-cnf.j2 dest=/root/.my.cnf mode=0600