From b4d9eed77594b14c1aedb19b02119b7e03f49840 Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Thu, 19 Jul 2018 15:06:12 +0200 Subject: [PATCH] This step sometimes fails inexplicably ..and succeeds on retry. --- roles/nova-compute/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/nova-compute/tasks/main.yml b/roles/nova-compute/tasks/main.yml index f7fff79..0ca0d61 100644 --- a/roles/nova-compute/tasks/main.yml +++ b/roles/nova-compute/tasks/main.yml @@ -74,3 +74,8 @@ - name: let nova controler discover new host shell: "sleep 10 && docker exec -i nova-controller.service nova-manage cell_v2 discover_hosts" delegate_to: "{{ hostvars[groups['nova-controller'][0]]['ansible_hostname'] }}" + register: result + until: result|succeeded + retries: 7 + delay: 3 + ignore_errors: yes