Ensure chrony is restarted

If chrony is already running, we need to make sure that we restart it if
necessary before waiting for the time syncs.

Change-Id: Ic3c7917a4edff46a77d48c07cd77a936f8e63a58
Related-Bug: #1802538
This commit is contained in:
Alex Schultz 2018-11-16 10:18:26 -07:00
parent 3694dee4b3
commit 31cd46f888
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,8 @@ outputs:
- name: Install, Configure and Run Chrony
include_role:
name: chrony
- name: Ensure chrony has been restarted
meta: flush_handlers
- name: Ensure system is NTP time synced
command: chronyc waitsync 20
ansible_group_vars: