Bugfix for wait_for_ssh 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: If389eb9ff727bad915fb3dceb6c0571f3362501e
This commit is contained in:
Rick Box 2017-04-27 18:15:31 +01:00
parent 9ee35d2b87
commit f5c72e5076

View File

@ -26,12 +26,12 @@
- role: "lxc_container_create"
post_tasks:
- name: Wait for ssh to be available
local_action:
module: wait_for
wait_for:
port: "22"
host: "{{ ansible_host | default(inventory_hostname) }}"
search_regex: OpenSSH
delay: 1
delegate_to: "{{ physical_host }}"
vars:
is_metal: "{{ properties.is_metal|default(false) }}"
tags: