diff --git a/tasks/install-requirements.yml b/tasks/install-requirements.yml
index 38c02cc3be0eca9efaea73da266ace5fe540476e..9dd7064f68fd4d124e432c718b8a4dc2a7bd26cd 100644
--- a/tasks/install-requirements.yml
+++ b/tasks/install-requirements.yml
@@ -2,10 +2,6 @@
 
 - name: Installation des dépendances pour HedgeDoc
   apt:
-    name: ['postgresql','nodejs','git','npm','yarn','bash','nginx']
+    name: ['postgresql','nodejs','git','npm','yarn','bash','nginx','python-psycopg2','libpq-dev']
     state: present
     update_cache: yes
-
-- name: Installation de la dépendance python
-  pip:
-    name: psycopg2