diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 089e80239265e882247ed36d3d5c4614ec6972a4..62c367b52d472f39fa9d114aefc9d61269bf17a8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -73,13 +73,11 @@ deploy_to_phoenix:
   needs: ["build"]
 
   before_script:
+    - eval "$(ssh-agent -s)"
+    - ssh-add $SSH_PRIVATE_KEY
     - pip3 install ansible
 
   script:
-    - ls -l /root/.ssh
-    - chmod 600 /root/.ssh/config
-    - chown root /root/.ssh/config
-    - ls -l /root/.ssh
     - ansible-playbook -i ansible/hosts.cfg ansible/playbook.yml -u $REMOTE_USER
 
   parallel: