Merge "Do not install ntp package on host when not used" into stable/stein

This commit is contained in:
Zuul 2019-10-21 09:22:31 +00:00 committed by Gerrit Code Review
commit 285145bb6d
2 changed files with 5 additions and 3 deletions

View File

@ -85,14 +85,14 @@ debian_pkg_install:
- git
- "{% if not easy_install_available %}python-pip{% endif %}"
- python-setuptools
- ntp
- "{% if enable_host_ntp | bool %}ntp{% endif %}"
- "{% if enable_ceph_nfs|bool %}rpcbind{% endif %}"
redhat_pkg_install:
- "{{ docker_yum_package }}"
- git
- python-setuptools
- ntp
- "{% if enable_host_ntp | bool %}ntp{% endif %}"
- sudo
ubuntu_pkg_removals:

View File

@ -74,7 +74,9 @@
update_cache: yes
become: True
with_items: "{{ redhat_pkg_install }}"
when: ansible_os_family == 'RedHat'
when:
- ansible_os_family == 'RedHat'
- item != ""
register: yum_install_result
# If any packages were updated, and any containers were running, wait for the