diff --git a/roles/bootstrap-os/tasks/main.yml b/roles/bootstrap-os/tasks/main.yml index a5ed5dc96..5b98d59d3 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 a69cb4b7f..58e0685a2 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