diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml
index 7e1493d27e66c01d86292b2462b246fb17965afa..fc31d0e6803f5615959ed2a71a362d6cecc8f9eb 100644
--- a/ansible/deploy.yaml
+++ b/ansible/deploy.yaml
@@ -10,22 +10,22 @@
   - name: stop iPPIDB service if relevant
     systemd: state=stopped name=ippidb-web
   - name: pull branch master
-    become_user: ippidb
+    become_user: "{{ deploy_user_name }}"
     git:
       repo=git@gitlab.pasteur.fr:odoppelt/iPPIDB.git
-      dest=/home/ippidb/iPPIDB
+      dest=/home/{{ deploy_user_name }}/iPPIDB
       accept_hostkey=yes
   - name: install python requirements
-    pip: requirements=/home/ippidb/iPPIDB/ippisite/requirements.txt extra_args=--upgrade executable=pip3
+    pip: requirements=/home/{{ deploy_user_name }}/iPPIDB/ippisite/requirements.txt extra_args=--upgrade executable=pip3
   - name: collect static files
-    become_user: ippidb
+    become_user: "{{ deploy_user_name }}"
     django_manage:
       command: "collectstatic"
-      app_path: "/home/ippidb/iPPIDB/ippisite"
+      app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
   - 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/ippidb/iPPIDB/ippisite"
+      app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
   - name: restrict access to the web server to specific IPs
     lineinfile: dest=/etc/ippidb-80/httpd.conf 
                 regexp=''
@@ -34,7 +34,7 @@
   - name: copy systemd service file for IPPIDB-web
     copy: 
       remote_src: true
-      src: /home/ippidb/iPPIDB/ansible/ippidb-web.service 
+      src: /home/{{ deploy_user_name }}/iPPIDB/ansible/ippidb-web.service 
       dest: /lib/systemd/system/ippidb-web.service
       owner: root
       group: root