From 7705c996501156c4adcfac1a69f33c46eedc2604 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Sat, 8 Dec 2018 15:11:49 -0800 Subject: [PATCH] apache module for wsgi required --- roles/captive-portal/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/roles/captive-portal/tasks/main.yml b/roles/captive-portal/tasks/main.yml index 719740860..80d97b5ba 100644 --- a/roles/captive-portal/tasks/main.yml +++ b/roles/captive-portal/tasks/main.yml @@ -6,6 +6,22 @@ - python-dateutil - sqlite3 # @georgehunt hopes to move this to 2-common (or more like stage 3-base-server, alongside MySQL) in October 2018 +- name: Install wsgi (debuntu) + package: + name: "{{ item }}" + state: present + with_items: + - libapache2-mod-wsgi + when: is_debuntu + +- name: Install wsgi (not debuntu) + package: + name: "{{ item }}" + state: present + with_items: + - mod_wsgi + when: not is_debuntu + - name: Create directory /opt/iiab/captive-portal for scripts & templates file: path: /opt/iiab/captive-portal