summaryrefslogtreecommitdiffstats
path: root/roles/mediawiki/tasks
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2015-03-23 18:53:07 +0100
committerMichael Scherer <misc@zarb.org>2015-03-23 18:53:07 +0100
commitb0f604626f0c3dadb28b33ee1f5d3b928885de48 (patch)
tree13acaba53a38dbb51b29ca77c4b5fa23dc189bd3 /roles/mediawiki/tasks
parent9f9e2ff09f38310c3f408553d881b7a9911edb57 (diff)
Create the db and the user
Diffstat (limited to 'roles/mediawiki/tasks')
-rw-r--r--roles/mediawiki/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/mediawiki/tasks/main.yml b/roles/mediawiki/tasks/main.yml
index 2a9f1da..96afba4 100644
--- a/roles/mediawiki/tasks/main.yml
+++ b/roles/mediawiki/tasks/main.yml
@@ -17,6 +17,9 @@
# TODO verify the signature when downloaded
+- mysql_db: name={{ wiki_db_name }} state=present
+- mysql_user: name={{ wiki_db_user }} password={{ wiki_db_password }} priv={{ wiki_db_name }}.*:ALL state=present
+
- set_fact: wiki_dir=/var/www/mediawiki/
- file: state=directory name={{ wiki_dir }}{{ item.path }} owner={{ item.owner }}