2021-02-02 19:27:37 +01:00
|
|
|
---
|
|
|
|
- name: Configure Mediawiki
|
|
|
|
template:
|
|
|
|
src: LocalSettings.php.j2
|
2021-02-02 23:02:44 +01:00
|
|
|
dest: "{{ mediawiki_webroot }}/{{ mediawiki_path }}/LocalSettings.php"
|
2021-02-02 19:27:37 +01:00
|
|
|
owner: www-data
|
|
|
|
group: www-data
|
|
|
|
mode: '0600'
|
2021-02-02 23:02:44 +01:00
|
|
|
|
|
|
|
- name: Install nginx site
|
|
|
|
template:
|
|
|
|
src: nginx.j2
|
|
|
|
dest: /etc/nginx/sites-available/{{ mediawiki_domain }}
|
|
|
|
when: mediawiki_install_nginx
|
|
|
|
|
|
|
|
- name: Activate site {{ mediawiki_install_nginx }}
|
|
|
|
file:
|
|
|
|
src: /etc/nginx/sites-available/{{ mediawiki_domain }}
|
|
|
|
dest: /etc/nginx/sites-enabled/{{ mediawiki_domain }}
|
|
|
|
when: mediawiki_install_nginx
|
|
|
|
...
|