From b0f604626f0c3dadb28b33ee1f5d3b928885de48 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 23 Mar 2015 18:53:07 +0100 Subject: Create the db and the user --- roles/mediawiki/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/mediawiki') 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 }} -- cgit