summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/prepare-tests
diff options
context:
space:
mode:
Diffstat (limited to 'xci/playbooks/roles/prepare-tests')
-rw-r--r--xci/playbooks/roles/prepare-tests/tasks/main.yml1
1 files changed, 1 insertions, 0 deletions
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