Merge "Replace chronyc "waitsync" with "makestep"" into stable/train
This commit is contained in:
commit
ee3e63e200
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue