This step sometimes fails inexplicably

..and succeeds on retry.
This commit is contained in:
Egon Rijpkema 2018-07-19 15:06:12 +02:00
parent 50d5c672d0
commit b4d9eed775
1 changed files with 5 additions and 0 deletions

View File

@ -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