Merge "Add chrony waitsync back in" into stable/train
This commit is contained in:
commit
0c2863bf7f
|
@ -124,8 +124,10 @@ outputs:
|
||||||
- name: Install, Configure and Run Chrony
|
- name: Install, Configure and Run Chrony
|
||||||
include_role:
|
include_role:
|
||||||
name: chrony
|
name: chrony
|
||||||
- name: Ensure system is NTP time synced
|
- name: Force NTP sync
|
||||||
command: chronyc makestep
|
command: chronyc makestep
|
||||||
|
- name: Ensure system is NTP time synced
|
||||||
|
command: chronyc waitsync 30
|
||||||
ansible_group_vars:
|
ansible_group_vars:
|
||||||
chrony_role_action: all
|
chrony_role_action: all
|
||||||
chrony_ntp_servers: {get_param: NtpServer}
|
chrony_ntp_servers: {get_param: NtpServer}
|
||||||
|
|
|
@ -75,6 +75,7 @@ resources:
|
||||||
if [ "$service" = "chrony" ]; then
|
if [ "$service" = "chrony" ]; then
|
||||||
if command -v chronyc >/dev/null; then
|
if command -v chronyc >/dev/null; then
|
||||||
chronyc makestep
|
chronyc makestep
|
||||||
|
chronyc waitsync 30
|
||||||
else
|
else
|
||||||
echo "No chronyc available, skipping sync"
|
echo "No chronyc available, skipping sync"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue