diff --git a/ansible/roles/prechecks/tasks/datetime_checks.yml b/ansible/roles/prechecks/tasks/datetime_checks.yml
index b81d8cf725030dc610219ddb4e5cb736b70c40f4..a365ab2fe8873558c890d18bc7acacda36da9ac9 100644
--- a/ansible/roles/prechecks/tasks/datetime_checks.yml
+++ b/ansible/roles/prechecks/tasks/datetime_checks.yml
@@ -23,4 +23,4 @@
           /etc/timezone is not found. This file is used for system-wide timezone
           settings and Kolla Ansible needs this file for mounting it to containers.
       when: not etc_timezone.stat.exists
-  when: kolla_base_distro in ['ubuntu', 'debian']
+  when: ansible_os_family == 'Debian'