From f5c5e11581e17919602fcc08a022ca190be2e18e Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 1 Nov 2018 09:55:48 +0000 Subject: 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 --- xci/playbooks/roles/prepare-tests/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'xci/playbooks/roles/prepare-tests') diff --git a/xci/playbooks/roles/prepare-tests/tasks/main.yml b/xci/playbooks/roles/prepare-tests/tasks/main.yml index b4e566c2..a543ac1f 100644 --- a/xci/playbooks/roles/prepare-tests/tasks/main.yml +++ b/xci/playbooks/roles/prepare-tests/tasks/main.yml @@ -11,6 +11,7 @@ - name: install required packages package: name: "{{ required_packages[ansible_pkg_mgr] }}" + update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}" state: present # Docker is needed for test frameworks -- cgit 1.2.3-korg