diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2017-09-14 22:19:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-14 22:19:03 +0000 |
commit | 2357c9d195173cb7cdf57ffcbc7e92cea73e0ff1 (patch) | |
tree | 69efb77016ad66c9401f032be4b5fccefeddaca6 | |
parent | 890763baf32de0bab7985b55fe9f8d7c59c48dc0 (diff) | |
parent | 41dbe53bf4436a76efeaf1abfeca08960659a9c4 (diff) |
Merge "synchronize-time: Retry if chrony failed due to NTP issues"
-rw-r--r-- | xci/playbooks/roles/synchronize-time/tasks/main.yml | 4 |
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" |