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:
parent
9ee35d2b87
commit
f5c72e5076
@ -26,12 +26,12 @@
|
|||||||
- role: "lxc_container_create"
|
- role: "lxc_container_create"
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Wait for ssh to be available
|
- name: Wait for ssh to be available
|
||||||
local_action:
|
wait_for:
|
||||||
module: wait_for
|
|
||||||
port: "22"
|
port: "22"
|
||||||
host: "{{ ansible_host | default(inventory_hostname) }}"
|
host: "{{ ansible_host | default(inventory_hostname) }}"
|
||||||
search_regex: OpenSSH
|
search_regex: OpenSSH
|
||||||
delay: 1
|
delay: 1
|
||||||
|
delegate_to: "{{ physical_host }}"
|
||||||
vars:
|
vars:
|
||||||
is_metal: "{{ properties.is_metal|default(false) }}"
|
is_metal: "{{ properties.is_metal|default(false) }}"
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user