Revert "Revert "Add chrony waitsync back in""

This reverts commit 21bd42b4f1.

Reason for revert: We need to validate ntp servers, the original was
reverted due to issues with the IPA job. This should land after we
fix whatever is causing the issue with the ipa job.

Change-Id: I25cf4c534aeb24a2bf42273ea769c868ef799cbb
This commit is contained in:
Alex Schultz 2021-12-28 19:17:44 +00:00
parent 894bd5b8c9
commit dfd28f7b13
2 changed files with 4 additions and 1 deletions

View File

@ -120,8 +120,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