From 1d45acae1d485e7a2e11d41ad0ac7f7422edc8d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Tue, 12 Sep 2017 22:59:41 +0200
Subject: [PATCH] minor correction to DJANGO_SETTINGS_MODULE ansible insertion

insertafter does not work and is probably useless anyway


Former-commit-id: cf751fe02bbf855e8cd495e7f79cfe66455decd8
---
 ansible/deploy.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml
index c90a19d2..f32f360f 100644
--- a/ansible/deploy.yaml
+++ b/ansible/deploy.yaml
@@ -80,7 +80,6 @@
     - name: add line in generated WSGI handler script to set DJANGO_SETTINGS_MODULE
       blockinfile:
         path: /etc/ippidb-80/handler.wsgi
-        insertafter: "os.environ['MOD_WSGI_SERVER_ALIASES'] = None or ''"
         content: |
           os.environ['DJANGO_SETTINGS_MODULE'] = 'ippisite.{{ ansible_hostname }}_settings'
     - name: create or update database
-- 
GitLab