1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

Clean Kolibri role for NGINX not Apache

This commit is contained in:
root 2021-07-06 15:26:01 -04:00
parent 7c145c04f8
commit 526be25db0
5 changed files with 4 additions and 15 deletions

View file

@ -9,14 +9,14 @@
system: yes
create_home: no
- name: Create directory {{ kolibri_home }} for Kolibri content, configuration, sqlite3 databases ({{ kolibri_user }}:{{ apache_user }}, '0755')
- name: Create directory {{ kolibri_home }} for Kolibri content, configuration, sqlite3 databases ({{ kolibri_user }}:{{ apache_user }}, by default 0755)
file:
state: directory
path: "{{ kolibri_home }}" # /library/kolibri
owner: "{{ kolibri_user }}" # kolibri
group: "{{ apache_user }}" # www-data (on Debian/Ubuntu/Raspbian)
- name: Create directory /etc/kolibri
- name: Create directory /etc/kolibri (by default 0755)
file:
state: directory
name: /etc/kolibri
@ -44,12 +44,6 @@
src: kolibri.service.j2
dest: /etc/systemd/system/kolibri.service
- name: 'Install from template: /etc/{{ apache_conf_dir }}/kolibri.conf'
template:
src: kolibri.conf.j2
dest: "/etc/{{ apache_conf_dir }}/kolibri.conf" # apache2/sites-available
when: apache_installed is defined
- name: Stop 'kolibri' systemd service, for Kolibri provisioning (after daemon_reload)
systemd:
name: kolibri

View file

@ -44,13 +44,8 @@
state: stopped
when: not kolibri_enabled
- name: Enable/Disable/Restart Apache if primary
include_tasks: apache.yml
when: not nginx_enabled
- name: Enable/Disable/Restart NGINX if primary
- name: Enable/Disable/Restart NGINX
include_tasks: nginx.yml
when: nginx_enabled
- name: Add 'kolibri' variable values to {{ iiab_ini_file }} # /etc/iiab/iiab.ini

View file

@ -18,6 +18,7 @@
* captiveportal
* IIAB documentation (http://box/info)
* jupyterhub
* kolibri
* lokole
* moodle
* nextcloud
@ -32,7 +33,6 @@
* calibre-web
* gitea
* kiwix
* kolibri
* mediawiki
* munin
* sugarizer