From 6a1a826f6f0d3ce1b7d9c7444057810c675e2144 Mon Sep 17 00:00:00 2001 From: georgejhunt Date: Mon, 19 Nov 2018 08:29:42 -0800 Subject: [PATCH] move install of iiab_env.py into base (#1304) --- roles/3-base-server/tasks/main.yml | 5 +++++ roles/4-server-options/tasks/main.yml | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) 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 eabcef866..6d9a71ce1 100644 --- a/roles/4-server-options/tasks/main.yml +++ b/roles/4-server-options/tasks/main.yml @@ -74,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