ntp is still installed even if ntp_service_enabled is set to false.
That could be a problem if the time synchronization is managed by
something else than ceph-ansible or if you want to use different NTP
implementation as suggested in #1354.
Fixes: #1354
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Signed-off-by: Guits <gabrioux@redhat.com>
#debian_package_dependencies:
# - python-pycurl
# - hdparm
-# - ntp
#centos_package_dependencies:
# - python-pycurl
# - hdparm
# - epel-release
-# - ntp
# - python-setuptools
# - libselinux-python
#redhat_package_dependencies:
# - python-pycurl
# - hdparm
-# - ntp
# - python-setuptools
# Enable the ntp service by default to avoid clock skew on
debian_package_dependencies:
- python-pycurl
- hdparm
- - ntp
centos_package_dependencies:
- python-pycurl
- hdparm
- epel-release
- - ntp
- python-setuptools
- libselinux-python
redhat_package_dependencies:
- python-pycurl
- hdparm
- - ntp
- python-setuptools
# Enable the ntp service by default to avoid clock skew on
always_run: true
changed_when: false
when: ansible_os_family == 'Debian'
+
+- name: install ntp on debian
+ package:
+ name: ntp
+ state: present
always_run: true
changed_when: false
when: ansible_os_family == 'RedHat'
+
+- name: install ntp on redhat
+ package:
+ name: ntp
+ state: present