1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +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 system: yes
create_home: no 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: file:
state: directory state: directory
path: "{{ kolibri_home }}" # /library/kolibri path: "{{ kolibri_home }}" # /library/kolibri
owner: "{{ kolibri_user }}" # kolibri owner: "{{ kolibri_user }}" # kolibri
group: "{{ apache_user }}" # www-data (on Debian/Ubuntu/Raspbian) group: "{{ apache_user }}" # www-data (on Debian/Ubuntu/Raspbian)
- name: Create directory /etc/kolibri - name: Create directory /etc/kolibri (by default 0755)
file: file:
state: directory state: directory
name: /etc/kolibri name: /etc/kolibri
@ -44,12 +44,6 @@
src: kolibri.service.j2 src: kolibri.service.j2
dest: /etc/systemd/system/kolibri.service 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) - name: Stop 'kolibri' systemd service, for Kolibri provisioning (after daemon_reload)
systemd: systemd:
name: kolibri name: kolibri

View file

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

View file

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