diff options
author | Markos Chandras <mchandras@suse.de> | 2018-11-01 09:55:48 +0000 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2018-11-01 09:57:29 +0000 |
commit | f5c5e11581e17919602fcc08a022ca190be2e18e (patch) | |
tree | 3609ed9acb4b4451c013a57e391268772ba44e5d /xci/installer/kubespray/playbooks/configure-targethosts.yml | |
parent | 348bb6a8cea2b12ceca8941fa46e8290b18f0a55 (diff) |
xci: Add missing update_cache statements
When we install packages from the distro repos we need to make sure
that the database is updated. This also takes SUSE's zypper pkg manager
into consideration which can benefit from the same Ansible option.
Change-Id: I7a2206bfc5827b9ccb448278759711c560bb4679
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/installer/kubespray/playbooks/configure-targethosts.yml')
-rw-r--r-- | xci/installer/kubespray/playbooks/configure-targethosts.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xci/installer/kubespray/playbooks/configure-targethosts.yml b/xci/installer/kubespray/playbooks/configure-targethosts.yml index 859460c6..2fde9877 100644 --- a/xci/installer/kubespray/playbooks/configure-targethosts.yml +++ b/xci/installer/kubespray/playbooks/configure-targethosts.yml @@ -22,7 +22,7 @@ package: name: "{{ (ansible_pkg_mgr == 'zypper') | ternary('dbus-1', 'dbus') }}" state: present - update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}" + update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}" - hosts: kube-master remote_user: root |