From 3e89ec9b239cbfdf9992e0a073db90d1e886a6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr> Date: Mon, 28 Jan 2019 15:20:54 +0100 Subject: [PATCH] set BABEL_LIBDIR also during deployment for django-manage tasks --- ansible/deploy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml index 22e902e7..28d42ef2 100644 --- a/ansible/deploy.yaml +++ b/ansible/deploy.yaml @@ -124,11 +124,15 @@ command: "collectstatic" app_path: "/home/{{ deploy_user_name }}/ippidb-web/ippisite" settings: "ippisite.{{ ansible_hostname }}_settings" + environment: + BABEL_LIBDIR: '/usr/lib64/openbabel/' - name: create mod_wsgi configuration django_manage: command: "runmodwsgi --setup-only --port=80 --user ippidb --group wheel --server-root=/etc/ippidb-80" app_path: "/home/{{ deploy_user_name }}/ippidb-web/ippisite" settings: "ippisite.{{ ansible_hostname }}_settings" + environment: + BABEL_LIBDIR: '/usr/lib64/openbabel/' - name: add line in generated WSGI handler script to set DJANGO_SETTINGS_MODULE and BABEL_LIBDIR for openbabel formats blockinfile: path: /etc/ippidb-80/handler.wsgi @@ -145,6 +149,8 @@ command: "migrate" app_path: "/home/{{ deploy_user_name }}/ippidb-web/ippisite" settings: "ippisite.{{ ansible_hostname }}_settings" + environment: + BABEL_LIBDIR: '/usr/lib64/openbabel/' # FIXME: this should obviously be removed before switching to prod. env. - name: install passlib for htpasswd in ansible yum: name=python-passlib state=installed -- GitLab