Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

19 řádky
873 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,INSERT,UPDATE,DELETE state=present
  12. - name: copying MySQL test data to server
  13. copy: src=test.sql dest=/tmp
  14. when: ispmail_populate_test_data == true
  15. - name: populating the database with test data
  16. mysql_db: name=mailserver state=import target=/tmp/test.sql
  17. when: ispmail_populate_test_data == true