diff --git a/roles/mediawiki/tasks/main.yml b/roles/mediawiki/tasks/main.yml index 131cd59..a98572e 100644 --- a/roles/mediawiki/tasks/main.yml +++ b/roles/mediawiki/tasks/main.yml @@ -49,10 +49,19 @@ extra_opts: [--strip-components=1] remote_src: yes -- name: Apply LocalSettings.php - template: - src: LocalSettings.php.j2 - dest: "{{ mw_dir }}/public_html/w/LocalSettings.php" +#- name: Apply LocalSettings.php +# template: +# src: LocalSettings.php.j2 +# dest: "{{ mw_dir }}/public_html/w/LocalSettings.php"i + +- name: Install MediaWiki + command: | + php maintenance/install.sh --dbname {{ mw_db_name }} \ + --installdbuser {{ mw_db_user }} --installdbpass {{ mw_db_pass }} \ + --pass {{ mw_root_pass }} FRITA admin + args: + chdir: "{{ mw_dir }}/public_html/w" + creates: "{{ mw_dir }}/public_html/w/LocalSettings.php" - name: Apply Apache Configuration template: