ansible/roles/mediawiki/tasks/main.yml

22 lines
570 B
YAML
Raw Normal View History

2021-02-02 19:27:37 +01:00
---
- name: Configure Mediawiki
template:
src: LocalSettings.php.j2
dest: "{{ mediawiki_webroot }}/{{ mediawiki_path }}/LocalSettings.php"
2021-02-02 19:27:37 +01:00
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
...