mirror of https://dev.ccchb.de/ccchb/ansible.git
22 lines
570 B
YAML
22 lines
570 B
YAML
---
|
|
- name: Configure Mediawiki
|
|
template:
|
|
src: LocalSettings.php.j2
|
|
dest: "{{ mediawiki_webroot }}/{{ mediawiki_path }}/LocalSettings.php"
|
|
owner: www-data
|
|
group: www-data
|
|
mode: '0600'
|
|
|
|
- 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
|
|
...
|