Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

19 linhas
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