Skip to content
Snippets Groups Projects
Unverified Commit 40261fdf authored by ERIK's avatar ERIK Committed by GitHub
Browse files

Fix iputils install failure in Kylin OS (#9453)


Signed-off-by: default avatarbo.jiang <bo.jiang@daocloud.io>

Signed-off-by: default avatarbo.jiang <bo.jiang@daocloud.io>
parent 590b4aa2
No related branches found
No related tags found
No related merge requests found
...@@ -84,14 +84,6 @@ ...@@ -84,14 +84,6 @@
or is_fedora_coreos or is_fedora_coreos
or ansible_distribution == "Fedora") 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 - name: Install ceph-commmon package
package: package:
name: name:
......
...@@ -103,10 +103,10 @@ ...@@ -103,10 +103,10 @@
- name: Ensure ping package - name: Ensure ping package
package: package:
name: >- name: >-
{%- if ansible_os_family in ['RedHat', 'Suse'] -%} {%- if ansible_os_family == 'Debian' -%}
iputils
{%- else -%}
iputils-ping iputils-ping
{%- else -%}
iputils
{%- endif -%} {%- endif -%}
state: present state: present
when: when:
......
...@@ -6,6 +6,14 @@ ...@@ -6,6 +6,14 @@
tags: tags:
- facts - 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 - name: check if booted with ostree
stat: stat:
path: /run/ostree-booted path: /run/ostree-booted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment