From 24c9f93e9434efbbee9bf9a7a399a527ac2dcb7c Mon Sep 17 00:00:00 2001 From: wutianwei Date: Sat, 3 Feb 2018 16:53:28 +0800 Subject: XCI: k8s: Add support for CentOS distro Kubespray already supports the CentOS distribution so make the necessary changes to allow it to work in XCI. Change-Id: I3cf1db055a5fd563b107b46456bc3e18eeafb3ab Co-authored-by: Markos Chandras Signed-off-by: wutianwei --- xci/installer/kubespray/playbooks/configure-targethosts.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xci/installer/kubespray/playbooks/configure-targethosts.yml') diff --git a/xci/installer/kubespray/playbooks/configure-targethosts.yml b/xci/installer/kubespray/playbooks/configure-targethosts.yml index 7e29025b..08c735b4 100644 --- a/xci/installer/kubespray/playbooks/configure-targethosts.yml +++ b/xci/installer/kubespray/playbooks/configure-targethosts.yml @@ -6,11 +6,11 @@ copy: src: "{{ XCI_PATH }}/xci/files/authorized_keys" dest: /root/.ssh/authorized_keys - - name: install dbus and ptyhon-netaddr - apt: - name: "{{item}}" - update_cache: yes - with_items: "{{ kube_require_packages }}" + - name: Install required packages + package: + name: "{{ kube_require_packages[ansible_pkg_mgr] }}" + state: present + update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}" - hosts: kube-master remote_user: root -- cgit 1.2.3-korg