Semi-installation
This commit is contained in:
parent
73656718d6
commit
a9f3c44c00
@ -17,6 +17,12 @@
|
|||||||
state: present
|
state: present
|
||||||
login_unix_socket: /var/run/mysqld/mysqld.sock
|
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
|
- name: Create Public HTML Directory
|
||||||
file:
|
file:
|
||||||
path: "{{ mw_dir }}/public_html"
|
path: "{{ mw_dir }}/public_html"
|
||||||
@ -49,20 +55,20 @@
|
|||||||
extra_opts: [--strip-components=1]
|
extra_opts: [--strip-components=1]
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|
||||||
#- name: Apply LocalSettings.php
|
|
||||||
# template:
|
|
||||||
# src: LocalSettings.php.j2
|
|
||||||
# dest: "{{ mw_dir }}/public_html/w/LocalSettings.php"i
|
|
||||||
|
|
||||||
- name: Install MediaWiki
|
- name: Install MediaWiki
|
||||||
command: |
|
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 }} \
|
--installdbuser {{ mw_db_user }} --installdbpass {{ mw_db_pass }} \
|
||||||
--pass {{ mw_root_pass }} FRITA admin
|
--pass {{ mw_root_pass }} FRITA admin
|
||||||
args:
|
args:
|
||||||
chdir: "{{ mw_dir }}/public_html/w"
|
chdir: "{{ mw_dir }}/public_html/w"
|
||||||
creates: "{{ mw_dir }}/public_html/w/LocalSettings.php"
|
creates: "{{ mw_dir }}/public_html/w/LocalSettings.php"
|
||||||
|
|
||||||
|
- name: "Enable Apache Module: rewrite"
|
||||||
|
apache2_module:
|
||||||
|
name: rewrite
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Apply Apache Configuration
|
- name: Apply Apache Configuration
|
||||||
template:
|
template:
|
||||||
src: mediawiki.conf.j2
|
src: mediawiki.conf.j2
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
roles:
|
roles:
|
||||||
- ansible
|
- ansible
|
||||||
- webserver
|
- webserver
|
||||||
- wordpress
|
#- wordpress
|
||||||
- nextcloud
|
#- nextcloud
|
||||||
- timetrex
|
#- timetrex
|
||||||
- mediawiki
|
- mediawiki
|
||||||
|
Loading…
Reference in New Issue
Block a user