summaryrefslogtreecommitdiffstats
path: root/xci/installer/kubespray/playbooks/configure-targethosts.yml
diff options
context:
space:
mode:
Diffstat (limited to 'xci/installer/kubespray/playbooks/configure-targethosts.yml')
-rw-r--r--xci/installer/kubespray/playbooks/configure-targethosts.yml10
1 files changed, 5 insertions, 5 deletions
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