mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #2794 from holta/lokole-with-less-apache
Lokole with less Apache
This commit is contained in:
commit
c6e1452694
4 changed files with 4 additions and 26 deletions
|
@ -2,16 +2,6 @@
|
||||||
# https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52
|
# https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52
|
||||||
|
|
||||||
|
|
||||||
#- name: "Set 'apache_install: True' and 'apache_enabled: True'"
|
|
||||||
# set_fact:
|
|
||||||
# apache_install: True
|
|
||||||
# apache_enabled: True
|
|
||||||
|
|
||||||
#- name: APACHE - run 'httpd' role
|
|
||||||
# include_role:
|
|
||||||
# name: httpd
|
|
||||||
|
|
||||||
|
|
||||||
- name: "Install 8 packages for Lokole: python3, python3-pip, python3-venv, python3-dev, python3-bcrypt, libffi-dev, libssl-dev, libopenjp2-7"
|
- name: "Install 8 packages for Lokole: python3, python3-pip, python3-venv, python3-dev, python3-bcrypt, libffi-dev, libssl-dev, libopenjp2-7"
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
|
@ -31,7 +21,6 @@
|
||||||
- mobile-broadband-provider-info
|
- mobile-broadband-provider-info
|
||||||
- ppp
|
- ppp
|
||||||
- wvdial
|
- wvdial
|
||||||
|
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
# For development purposes -- To install Lokole from a given commit, add the
|
# For development purposes -- To install Lokole from a given commit, add the
|
||||||
|
@ -140,19 +129,13 @@
|
||||||
- name: Create Lokole admin user with password, for http://box{{ lokole_url }} # http://box/lokole
|
- name: Create Lokole admin user with password, for http://box{{ lokole_url }} # http://box/lokole
|
||||||
include_tasks: setup.yml
|
include_tasks: setup.yml
|
||||||
|
|
||||||
- name: Install /etc/{{ apache_conf_dir }}/lokole.conf from template, for http://box{{ lokole_url }} via Apache # http://box/lokole
|
|
||||||
template:
|
# RECORD Lokole AS INSTALLED
|
||||||
src: lokole.conf.j2
|
|
||||||
dest: "/etc/{{ apache_conf_dir }}/lokole.conf"
|
|
||||||
mode: 0644
|
|
||||||
when: apache_install
|
|
||||||
|
|
||||||
- name: "Set 'lokole_installed: True'"
|
- name: "Set 'lokole_installed: True'"
|
||||||
set_fact:
|
set_fact:
|
||||||
lokole_installed: True
|
lokole_installed: True
|
||||||
|
|
||||||
# RECORD Lokole AS INSTALLED
|
|
||||||
|
|
||||||
- name: "Add 'lokole_installed: True' to {{ iiab_state_file }}"
|
- name: "Add 'lokole_installed: True' to {{ iiab_state_file }}"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
path: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
||||||
|
|
|
@ -43,13 +43,8 @@
|
||||||
state: stopped
|
state: stopped
|
||||||
when: not lokole_enabled
|
when: not lokole_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 'lokole' variable values to {{ iiab_ini_file }}
|
- name: Add 'lokole' variable values to {{ iiab_ini_file }}
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
* captiveportal
|
* captiveportal
|
||||||
* IIAB documentation (http://box/info)
|
* IIAB documentation (http://box/info)
|
||||||
* jupyterhub
|
* jupyterhub
|
||||||
|
* lokole
|
||||||
* moodle
|
* moodle
|
||||||
* nodered
|
* nodered
|
||||||
* osm-vector-maps
|
* osm-vector-maps
|
||||||
|
@ -31,7 +32,6 @@
|
||||||
* gitea
|
* gitea
|
||||||
* kiwix
|
* kiwix
|
||||||
* kolibri
|
* kolibri
|
||||||
* lokole
|
|
||||||
* mediawiki
|
* mediawiki
|
||||||
* munin
|
* munin
|
||||||
* nextcloud
|
* nextcloud
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue