Merge pull request #1399 from guits/fix_ntp_install

Common: Do not install ntp when ntp_service_enabled is false
pull/1404/head
Sébastien Han 2017-03-29 11:50:27 +02:00 committed by GitHub
commit a3ca0b3eb3
4 changed files with 10 additions and 6 deletions

View File

@ -56,20 +56,17 @@ dummy:
#debian_package_dependencies: #debian_package_dependencies:
# - python-pycurl # - python-pycurl
# - hdparm # - hdparm
# - ntp
#centos_package_dependencies: #centos_package_dependencies:
# - python-pycurl # - python-pycurl
# - hdparm # - hdparm
# - epel-release # - epel-release
# - ntp
# - python-setuptools # - python-setuptools
# - libselinux-python # - libselinux-python
#redhat_package_dependencies: #redhat_package_dependencies:
# - python-pycurl # - python-pycurl
# - hdparm # - hdparm
# - ntp
# - python-setuptools # - python-setuptools
# Enable the ntp service by default to avoid clock skew on # Enable the ntp service by default to avoid clock skew on

View File

@ -48,20 +48,17 @@ upgrade_ceph_packages: False
debian_package_dependencies: debian_package_dependencies:
- python-pycurl - python-pycurl
- hdparm - hdparm
- ntp
centos_package_dependencies: centos_package_dependencies:
- python-pycurl - python-pycurl
- hdparm - hdparm
- epel-release - epel-release
- ntp
- python-setuptools - python-setuptools
- libselinux-python - libselinux-python
redhat_package_dependencies: redhat_package_dependencies:
- python-pycurl - python-pycurl
- hdparm - hdparm
- ntp
- python-setuptools - python-setuptools
# Enable the ntp service by default to avoid clock skew on # Enable the ntp service by default to avoid clock skew on

View File

@ -6,3 +6,8 @@
always_run: true always_run: true
changed_when: false changed_when: false
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: install ntp on debian
package:
name: ntp
state: present

View File

@ -6,3 +6,8 @@
always_run: true always_run: true
changed_when: false changed_when: false
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: install ntp on redhat
package:
name: ntp
state: present