From b0fb67af9d4e3eb5ea595e7555b432ff898dd977 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 23 Oct 2017 14:13:50 -0500 Subject: [PATCH] Proposed fix for issue #448 Might need full path ie {{ osm_path }} in place of {{ osm_venv }} With the push by the distros to python3 we took the step to use virtual environments to better contain python 2.7 based programs. --- roles/osm/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/osm/tasks/main.yml b/roles/osm/tasks/main.yml index 33039e02f..e568f14ab 100644 --- a/roles/osm/tasks/main.yml +++ b/roles/osm/tasks/main.yml @@ -71,6 +71,12 @@ osm_path: "{{ osm_venv }}/lib/python2.7/site-packages/iiab" when: osm_enabled and is_debuntu +- name: All - Point wsgi to virtual environment + lineinfile: dest={{ osm_venv }}/bin/iiab.wsgi + regexp='path_to_virtualenv*' + line='path_to_virtualenv = /usr/local/osm' + state=present + - name: All - Copy IIAB config file template: backup=no src=osm.conf.j2