diff --git a/roles/upgrade-lustre/tasks/main.yml b/roles/upgrade-lustre/tasks/main.yml
index 00b23983f4f0fce26a7c8325f2cda61fa057c22a..697d68933bd41807e73da81deac23a771cebb4ad 100644
--- a/roles/upgrade-lustre/tasks/main.yml
+++ b/roles/upgrade-lustre/tasks/main.yml
@@ -9,8 +9,10 @@
     - kmod-lustre-client
   become: true
   become_user: root
+  register: update_done
 
-- name: Unconditionally reboot the machine with all defaults
+- name: reboot the machine if an upgrade occured
   reboot:
+  when: update_done.changed
   become: true
   become_user: root