diff --git a/roles/slurm-common/tasks/installSlurmFromSource.yml b/roles/slurm-common/tasks/installSlurmFromSource.yml
index dd1ae4a0f5eeb2e779eb17f037c83b48768e5fb6..75f5da45a5363f02e5595b9604c57f7ea85d29bd 100644
--- a/roles/slurm-common/tasks/installSlurmFromSource.yml
+++ b/roles/slurm-common/tasks/installSlurmFromSource.yml
@@ -94,7 +94,7 @@
   sudo: true
 
 - name: remove exist-slurm-latest-link
-  shell: rm -f  /opt/slurm-latest
+  shell: unlink  /opt/slurm-latest
   sudo: true
   when: force_slurm_recompile is defined or not stat_srun.stat.exists