Skip to content

Commit 1b40f0d

Browse files
committed
Drop the NTP service precheck
We can't check this with timedatectl as it is not aware of any "non-native" NTP daemon. This could be a warning-level message but we don't have such messages from the prechecks. Closes-Bug: #1922721 Change-Id: I6db37576118cf5cff4ba7a63e179f0ab37467d22 (cherry picked from commit 0431575)
1 parent 366be65 commit 1b40f0d

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

ansible/roles/prechecks/tasks/timesync_checks.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@
55
register: timedatectl_status
66
changed_when: false
77

8-
- name: Fail if no (S)NTP service is running
9-
fail:
10-
msg: >-
11-
timedatectl does not see any (S)NTP service running.
12-
Please ensure you have (S)NTP client working.
13-
when:
14-
- "'service: active' not in timedatectl_status.stdout"
15-
# Ubuntu Bionic (18.04)
16-
- "'service active: yes' not in timedatectl_status.stdout"
17-
188
- name: Fail if the clock is not synchronized
199
fail:
2010
msg: >-
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes an issue preventing prechecks from succeeding when "non-native"
5+
NTP daemon was used, such as ``ntpd` as opposed to ``systemd-timesyncd``
6+
on a Debian/Ubuntu system or to ``chronyd`` on a CentOS/RHEL system.
7+
`LP#1922721 <https://launchpad.net/bugs/1922721>`__

0 commit comments

Comments
 (0)