diff --git a/roles/slurm-common/tasks/installSlurmFromSource.yml b/roles/slurm-common/tasks/installSlurmFromSource.yml
index f87bbd8ea9a8c6bf25611a7ce89448a20d5bf61b..4885cb68d4f608082b5e55a0091f791dbba47194 100644
--- a/roles/slurm-common/tasks/installSlurmFromSource.yml
+++ b/roles/slurm-common/tasks/installSlurmFromSource.yml
@@ -28,8 +28,8 @@
   register: stat_ucx
 
 - name: Create ucx directory if it does not exist
-  ansible.builtin.file:
-    path: /usr/local/ucx/
+  file:
+    path: '/usr/local/ucx/'
     state: directory
     owner: damienl
     group: systems
@@ -48,9 +48,9 @@
   register: newucx
 
 - name: symlink ucx to latest
-  ansible.builtin.file:
-    src: /usr/local/ucx/1.8.0
-    dest: /usr/local/ucx/latest
+  file:
+    src: '/usr/local/ucx/1.8.0'
+    dest: '/usr/local/ucx/latest'
     state: link
     owner: damienl
     group: systems