diff --git a/shell/tasks/shell.yml b/shell/tasks/shell.yml
index 6d2893cd192264802ab65479cc1c518133582ec0..148fb92d9c3451a199261dfda7239187929f36cc 100644
--- a/shell/tasks/shell.yml
+++ b/shell/tasks/shell.yml
@@ -63,7 +63,7 @@
       - ripgrep
       - fd-find
     state: present
-  when: debian_version == "buster"
+  when: ansible_distribution_major_version|int(default=99) >= 10
   tags:
     - packages
     - shell