From b2af998ba934074089b3f4146d40a0333db39dc3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Mon, 15 Jan 2018 21:30:34 +0100
Subject: [PATCH] Update deploy.yaml

Former-commit-id: 1f9362e797767c5a6b2619d8932bbc764ce6c800
---
 ansible/deploy.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml
index a3b0ca55..fbb2e545 100644
--- a/ansible/deploy.yaml
+++ b/ansible/deploy.yaml
@@ -91,6 +91,12 @@
         command: "migrate"
         app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
         settings: "ippisite.{{ ansible_hostname }}_settings"
+    - htpasswd:
+        path: /etc/nginx/passwdfile
+        name: ippidb
+        password: ''
+        owner: root
+        mode: 0640
     # FIXME: this should obviously be removed before switching to prod. env.
     - name: restrict access to the web server to specific IPs
       lineinfile: dest=/etc/ippidb-80/httpd.conf 
-- 
GitLab