playbooks: utility-install.yml: Update package cache on openSUSE

Change-Id: I53280dd82f9e1f30a718c5d52429363e0cbf4cfa
This commit is contained in:
Markos Chandras 2017-08-17 17:09:45 +01:00
parent 1a3b11f82e
commit f70ca23478

View File

@ -53,7 +53,7 @@
package:
name: "{{ utility_distro_packages | default([]) }}"
state: "{{ utility_package_state }}"
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
- name: Get list of python clients