diff --git a/iiab-install b/iiab-install
index 04c42b06a..c8da18096 100755
--- a/iiab-install
+++ b/iiab-install
@@ -10,7 +10,7 @@ CWD=`pwd`
OS=`grep ^ID= /etc/*release|cut -d= -f2`
OS=${OS//\"/}
MIN_RPI_KERN=4.9.59-v7+
-MIN_ANSIBLE_VER=2.6.7
+MIN_ANSIBLE_VER=2.6.9
if [ ! -f /etc/iiab/local_vars.yml ]; then
diff --git a/roles/1-prep/tasks/main.yml b/roles/1-prep/tasks/main.yml
index 06b33a9fc..42615e785 100644
--- a/roles/1-prep/tasks/main.yml
+++ b/roles/1-prep/tasks/main.yml
@@ -5,7 +5,9 @@
- name: Install uuid-runtime package (debuntu)
package:
- name: uuid-runtime
+ name:
+ - uuid-runtime
+ - sudo
state: present
when: is_debuntu
diff --git a/roles/3-base-server/tasks/main.yml b/roles/3-base-server/tasks/main.yml
index 2b1672f1a..6f43f84a2 100644
--- a/roles/3-base-server/tasks/main.yml
+++ b/roles/3-base-server/tasks/main.yml
@@ -21,6 +21,11 @@
state: restarted
when: not installing
+- name: Create a Python interface to iiab.env
+ template:
+ src: roles/1-prep/templates/iiab_env.py.j2
+ dest: /etc/iiab/iiab_env.py
+
- name: Recording STAGE 3 HAS COMPLETED =====================
lineinfile:
dest: "{{ iiab_env_file }}"
diff --git a/roles/4-server-options/tasks/main.yml b/roles/4-server-options/tasks/main.yml
index ec90b4118..6d9a71ce1 100644
--- a/roles/4-server-options/tasks/main.yml
+++ b/roles/4-server-options/tasks/main.yml
@@ -13,7 +13,12 @@
when: named_install
tags: base, named, network, domain
-- name: Install dhcpd
+- name: Installing captive portal
+ include_tasks: roles/captive-portal/tasks/main.yml
+ when: captive_portal_install
+ tags: base, captive-portal, network, domain
+
+- name: Installing dhcpd
include_tasks: roles/network/tasks/dhcpd.yml
when: dhcpd_install
tags: base, dhcpd, network, domain
@@ -69,12 +74,6 @@
when: usb_lib_install
tags: usb-lib
-# MANDATORY SO PERHAPS THIS BELONGS IN 3-BASE-SERVER ?
-- name: Create a Python interface to iiab.env
- template:
- src: roles/1-prep/templates/iiab_env.py.j2
- dest: /etc/iiab/iiab_env.py
-
- name: Run /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation. (This script was installed at the beginning of Stage 3 = roles/3-base-server/tasks/main.yml, which ran Apache playbook = roles/httpd/tasks/main.yml)
command: /usr/bin/iiab-refresh-wiki-docs
when: not nodocs
diff --git a/roles/captive-portal/defaults/main.yml b/roles/captive-portal/defaults/main.yml
new file mode 100644
index 000000000..fab470665
--- /dev/null
+++ b/roles/captive-portal/defaults/main.yml
@@ -0,0 +1 @@
+captive_portal_port: 9090
diff --git a/roles/network/files/mac.template b/roles/captive-portal/files/mac.template
similarity index 94%
rename from roles/network/files/mac.template
rename to roles/captive-portal/files/mac.template
index c430d1958..6d4bca5e3 100644
--- a/roles/network/files/mac.template
+++ b/roles/captive-portal/files/mac.template
@@ -48,7 +48,7 @@
- {{ btn1 }}
+ {{ btn1 }}