summaryrefslogtreecommitdiffstats
path: root/xci/installer/kubespray/playbooks/configure-opnfvhost.yml
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-02-26 10:28:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-26 10:28:22 +0000
commit1cc81c151829ec519c04f3210c73f87b639341df (patch)
treee01d46392390543171c03765a28f522d3d4148b6 /xci/installer/kubespray/playbooks/configure-opnfvhost.yml
parentd49926b405d6b24d40497cbee68ce50c82bad222 (diff)
parent24c9f93e9434efbbee9bf9a7a399a527ac2dcb7c (diff)
Merge "XCI: k8s: Add support for CentOS distro"
Diffstat (limited to 'xci/installer/kubespray/playbooks/configure-opnfvhost.yml')
-rw-r--r--xci/installer/kubespray/playbooks/configure-opnfvhost.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/xci/installer/kubespray/playbooks/configure-opnfvhost.yml b/xci/installer/kubespray/playbooks/configure-opnfvhost.yml
index 23f93852..9fb4da19 100644
--- a/xci/installer/kubespray/playbooks/configure-opnfvhost.yml
+++ b/xci/installer/kubespray/playbooks/configure-opnfvhost.yml
@@ -56,11 +56,11 @@
- name: copy k8s_cluster.yml
shell: "cp -rf {{ remote_xci_path }}/xci/installer/kubespray/files/k8s-cluster.yml \
{{ remote_xci_path }}/.cache/repos/kubespray/opnfv_inventory/group_vars"
- - 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) }}"
when: XCI_FLAVOR == 'aio'
- name: pip install ansible
pip: