From 6fc614d5ea68f0ceab0d49a2cacc0663d1f0ee7a Mon Sep 17 00:00:00 2001
From: handreas <andreas.hamacher@monash.edu>
Date: Mon, 9 Dec 2019 01:02:45 +0000
Subject: [PATCH] avoiding to try and delete a directory

Former-commit-id: 6ddabdf8cf093311ab6d1d61047d302faff85b48
---
 roles/slurm-common/tasks/installSlurmFromSource.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/slurm-common/tasks/installSlurmFromSource.yml b/roles/slurm-common/tasks/installSlurmFromSource.yml
index dd1ae4a0..75f5da45 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
 
-- 
GitLab