Semi-installation

This commit is contained in:
Kris Lamoureux 2020-01-31 22:50:08 -05:00
parent 73656718d6
commit a9f3c44c00
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
2 changed files with 15 additions and 9 deletions

View File

@ -17,6 +17,12 @@
state: present
login_unix_socket: /var/run/mysqld/mysqld.sock
- name: Install PHP Modules
apt:
name: ['php-xml', 'php-mbstring']
state: present
notify: Reload Apache2
- name: Create Public HTML Directory
file:
path: "{{ mw_dir }}/public_html"
@ -49,20 +55,20 @@
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"i
- name: Install MediaWiki
command: |
php maintenance/install.sh --dbname {{ mw_db_name }} \
php maintenance/install.php --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: "Enable Apache Module: rewrite"
apache2_module:
name: rewrite
state: present
- name: Apply Apache Configuration
template:
src: mediawiki.conf.j2

View File

@ -19,7 +19,7 @@
roles:
- ansible
- webserver
- wordpress
- nextcloud
- timetrex
#- wordpress
#- nextcloud
#- timetrex
- mediawiki