Bugfix for container_create.yml for waiting for connectivity

Bug: https://bugs.launchpad.net/openstack-ansible/+bug/1682481 this
causes issues when using an SSH gateway yet this is simply doing a basic
check for port 22 connectivity.

Change-Id: If090faed61e9207e0ed60399eeb43255fea781f2
This commit is contained in:
Rick Box 2017-04-13 17:04:25 +01:00 committed by Kevin Carter (cloudnull)
parent dc034ff5c3
commit f77cc2fde5

View File

@ -405,8 +405,7 @@
- meta: flush_handlers
- name: Wait for ssh to be available
local_action:
module: wait_for
wait_for:
port: "{{ ansible_port | default('22') }}"
host: "{{ ansible_host | default(inventory_hostname) }}"
search_regex: OpenSSH
@ -414,6 +413,7 @@
register: ssh_wait_check
until: ssh_wait_check | success
retries: 3
delegate_to: "{{ physical_host }}"
tags:
- lxc_container_create-networks
@ -476,4 +476,3 @@
state: directory
tags:
- lxc_container_create-install