Correct cache_valid_time variable name
The variable name is venv_distro_cache_valid_time rather than distro_cache_valid_time. Also, this variable is only used by apt, not zypper. Change-Id: I71682b7d6bf183967d06f485772760876e2c8df6
This commit is contained in:
parent
8f1129e989
commit
2820d9ec0b
|
@ -40,7 +40,7 @@ venv_pip_package_state: "latest"
|
|||
|
||||
# The time in seconds that the distribution package
|
||||
# cache is valid for. This is only used by the apt
|
||||
# and zypper package managers.
|
||||
# package manager.
|
||||
venv_distro_cache_valid_time: 600
|
||||
|
||||
# Python packages which must be installed
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
name: "{{ venv_build_distro_package_list + venv_install_distro_package_list }}"
|
||||
state: "{{ venv_distro_package_state }}"
|
||||
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
|
||||
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(distro_cache_valid_time, omit) }}"
|
||||
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(venv_distro_cache_valid_time, omit) }}"
|
||||
when:
|
||||
- (venv_build_distro_package_list | length > 0) or
|
||||
(venv_install_distro_package_list | length > 0)
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
name: "{{ venv_install_distro_package_list }}"
|
||||
state: "{{ venv_distro_package_state }}"
|
||||
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
|
||||
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(distro_cache_valid_time, omit) }}"
|
||||
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(venv_distro_cache_valid_time, omit) }}"
|
||||
when:
|
||||
- venv_install_distro_package_list | length > 0
|
||||
register: _install_distro_packages
|
||||
|
|
Loading…
Reference in New Issue