diff --git a/roles/bootstrap-os/tasks/bootstrap-centos.yml b/roles/bootstrap-os/tasks/bootstrap-centos.yml
index 23ca011b76340c6382066238485285f6ed5f290b..007fdce22ae3fdefdd82ff4de77041847ba70372 100644
--- a/roles/bootstrap-os/tasks/bootstrap-centos.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-centos.yml
@@ -84,6 +84,7 @@
     - use_oracle_public_repo|default(true)
     - '''ID="ol"'' in os_release.stdout_lines'
     - (ansible_distribution_version | float) >= 7.6
+    - (ansible_distribution_version | float) < 9
 
 # CentOS ships with python installed