Implement retries for SSH check
Most of often when Ansible can't connect to the container, it has started up and appears to still be in the process of completing the startup. This implements retries for the SSH connection to increase the chance of success. Change-Id: I55f95628905180add79e2548e0553ca15dd19e2b
This commit is contained in:
parent
019f156ab3
commit
4d154ae1ad
@ -252,6 +252,9 @@
|
||||
host: "{{ ansible_ssh_host | default(inventory_hostname) }}"
|
||||
search_regex: OpenSSH
|
||||
delay: "{{ lxc_container_ssh_delay }}"
|
||||
register: ssh_wait_check
|
||||
until: ssh_wait_check | success
|
||||
retries: 3
|
||||
tags:
|
||||
- lxc-container-networks
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user