summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-09-14 22:19:03 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-14 22:19:03 +0000
commit2357c9d195173cb7cdf57ffcbc7e92cea73e0ff1 (patch)
tree69efb77016ad66c9401f032be4b5fccefeddaca6
parent890763baf32de0bab7985b55fe9f8d7c59c48dc0 (diff)
parent41dbe53bf4436a76efeaf1abfeca08960659a9c4 (diff)
Merge "synchronize-time: Retry if chrony failed due to NTP issues"
-rw-r--r--xci/playbooks/roles/synchronize-time/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/xci/playbooks/roles/synchronize-time/tasks/main.yml b/xci/playbooks/roles/synchronize-time/tasks/main.yml
index 5c39d897..985c1515 100644
--- a/xci/playbooks/roles/synchronize-time/tasks/main.yml
+++ b/xci/playbooks/roles/synchronize-time/tasks/main.yml
@@ -15,4 +15,8 @@
state: restarted
- name: synchronize time
shell: "chronyc -a 'burst 4/4' && chronyc -a makestep"
+ register: chrony_got_time
+ until: chrony_got_time.rc == 0
+ retries: 5
+ delay: 5
when: ansible_distribution_release == "xenial"