Merge "Add chrony waitsync back in" into stable/wallaby

This commit is contained in:
Zuul 2022-01-07 01:33:18 +00:00 committed by Gerrit Code Review
commit 5ff09a842c
2 changed files with 4 additions and 1 deletions

View File

@ -119,8 +119,10 @@ outputs:
- name: Install, Configure and Run Chrony
include_role:
name: chrony
- name: Ensure system is NTP time synced
- name: Force NTP sync
command: chronyc makestep
- name: Ensure system is NTP time synced
command: chronyc waitsync 30
ansible_group_vars:
chrony_role_action: all
chrony_ntp_servers: {get_param: NtpServer}

View File

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