Merge "Replace chronyc "waitsync" with "makestep"" into stable/train

This commit is contained in:
Zuul 2020-03-14 06:31:24 +00:00 committed by Gerrit Code Review
commit ee3e63e200
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ outputs:
- name: Ensure chrony has been restarted
meta: flush_handlers
- name: Ensure system is NTP time synced
command: chronyc waitsync 20
command: chronyc makestep
ansible_group_vars:
chrony_role_action: all
chrony_ntp_servers: {get_param: NtpServer}

View File

@ -74,7 +74,7 @@ resources:
set -x
if [ "$service" = "chrony" ]; then
if command -v chronyc >/dev/null; then
chronyc waitsync 20
chronyc makestep
else
echo "No chronyc available, skipping sync"
fi