Merge "Pass packages to install as a list"

This commit is contained in:
Jenkins 2017-06-21 19:26:05 +00:00 committed by Gerrit Code Review
commit de8cef8ec8
2 changed files with 2 additions and 4 deletions

View File

@ -51,13 +51,12 @@
- name: Install repo caching server packages
package:
name: "{{ item }}"
name: "{{ repo_pkg_cache_server_distro_packages }}"
state: "{{ repo_server_package_state }}"
register: install_packages
until: install_packages|success
retries: 5
delay: 5
with_items: "{{ repo_pkg_cache_server_distro_packages }}"
when:
- repo_pkg_cache_enabled | bool
tags:

View File

@ -15,7 +15,7 @@
- name: Install repo server packages
package:
name: "{{ item }}"
name: "{{ repo_server_distro_packages }}"
state: "{{ repo_server_package_state }}"
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
@ -23,6 +23,5 @@
until: install_packages|success
retries: 5
delay: 5
with_items: "{{ repo_server_distro_packages }}"
tags:
- repo-packages