diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml
index 595edc4a85bedfd65519e6a052fafde03aeab4d0..50fb69b75ef8bbfe4d3dbcf9ecb8b2b123810edb 100644
--- a/ansible/deploy.yaml
+++ b/ansible/deploy.yaml
@@ -1,19 +1,18 @@
 ---
 - hosts: all
   become: yes
-  become_user: ippidb
   gather_facts: no
   tasks:
+  - name: stop "generic" httpd service if relevant
+    systemd: state=stopped name=httpd
+  - name: stop iPPIDB service if relevant
+    systemd: state=stopped name=ippidb-web
   - name: pull branch master
+    become_user: ippidb
     git:
       repo=git@gitlab.pasteur.fr:odoppelt/iPPIDB.git
       dest=/home/ippidb/iPPIDB
       accept_hostkey=yes
-
-- hosts: all
-  become: yes
-  gather_facts: no
-  tasks:
   - name: install python requirements
     pip: requirements=/home/ippidb/iPPIDB/ippisite/requirements.txt extra_args=--upgrade executable=pip3
   - name: collect static files
@@ -24,3 +23,12 @@
     django_manage:
       command: "runmodwsgi --setup-only --port=80 --user ippidb --group wheel --server-root=/etc/ippidb-80"
       app_path: "/home/ippidb/iPPIDB/ippisite"
+  - name: copy systemd service file for IPPIDB-web
+    copy: 
+      remote_src: true
+      src: /home/ippidb/iPPIDB/ansible/ippidb-web.service 
+      dest: /lib/systemd/system/ippidb-web.service
+      owner: root
+      group: root
+  - name: start iPPIDB service if relevant
+    systemd: state=started name=ippidb-web enabled=true