diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml
index c90a19d237586b88e252f1f7a29c77426a55fa7c..f32f360fca1abbf417a142eab712540260de5cb2 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