diff --git a/roles/slurm-common/tasks/installSlurmFromSource.yml b/roles/slurm-common/tasks/installSlurmFromSource.yml
index d8dc92c4be3aba39a2b8af17258d5d2694d417f8..9d1a326c634ede300ccbe6571b6123b88903cf50 100644
--- a/roles/slurm-common/tasks/installSlurmFromSource.yml
+++ b/roles/slurm-common/tasks/installSlurmFromSource.yml
@@ -101,16 +101,16 @@
   file:
     path: /opt/slurm-latest
     state: absent
-    become: true
-    when: force_slurm_recompile is defined or not stat_srun.stat.exists
+  become: true
+  when: force_slurm_recompile is defined or not stat_srun.stat.exists
 
 - name: put slurm-latest-link
   file:
     src: "{{ slurm_dir }}"
     dest: /opt/slurm-latest
     state: link
-    become: true
-    when: force_slurm_recompile is defined or not stat_srun.stat.exists
+  become: true
+  when: force_slurm_recompile is defined or not stat_srun.stat.exists
 
 - name: add slurm log rotate config
   template: src=slurmlog.j2 dest=/etc/logrotate.d/slurm mode=644