diff --git a/roles/bootstrap-os/tasks/main.yml b/roles/bootstrap-os/tasks/main.yml
index a5ed5dc96e2a914da2edcf09f528da47340250a2..5b98d59d387e074d41a67ae120e1f98414b87b39 100644
--- a/roles/bootstrap-os/tasks/main.yml
+++ b/roles/bootstrap-os/tasks/main.yml
@@ -84,6 +84,14 @@
     or is_fedora_coreos
     or ansible_distribution == "Fedora")
 
+- name: Set os_family fact for Kylin Linux Advanced Server
+  set_fact:
+    ansible_os_family: "RedHat"
+    ansible_distribution_major_version: "8"
+  when: ansible_distribution == "Kylin Linux Advanced Server"
+  tags:
+    - facts
+
 - name: Install ceph-commmon package
   package:
     name:
diff --git a/roles/kubernetes/preinstall/tasks/0040-set_facts.yml b/roles/kubernetes/preinstall/tasks/0040-set_facts.yml
index a69cb4b7fb18827858522a0afed095bf6c5348f4..58e0685a2a01aac7516dc84521b078860de9a4d5 100644
--- a/roles/kubernetes/preinstall/tasks/0040-set_facts.yml
+++ b/roles/kubernetes/preinstall/tasks/0040-set_facts.yml
@@ -6,14 +6,6 @@
   tags:
     - facts
 
-- name: Set os_family fact for Kylin Linux Advanced Server
-  set_fact:
-    ansible_os_family: "RedHat"
-    ansible_distribution_major_version: "8"
-  when: ansible_distribution == "Kylin Linux Advanced Server"
-  tags:
-    - facts
-
 - name: check if booted with ostree
   stat:
     path: /run/ostree-booted