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: Ia3c82fcef553b6a53f66d22b9cfdcf5d69e8694d
This commit is contained in:
Rick Box 2017-04-27 18:10:14 +01:00
parent 4f2c282597
commit c8790db909
3 changed files with 6 additions and 6 deletions

View File

@ -49,12 +49,12 @@
delegate_to: "{{ physical_host }}"
- 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
delay: 1
delegate_to: "{{ physical_host }}"
- name: Add iptables rule for communication w/ metadata agent
command: /sbin/iptables -t mangle -A POSTROUTING -p tcp --sport 80 -j CHECKSUM --checksum-fill

View File

@ -31,11 +31,11 @@
- role: "lxc_container_create"
post_tasks:
- 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
delay: 1
delegate_to: "{{ physical_host }}"
vars_files:
- test-vars.yml

View File

@ -97,9 +97,9 @@
- "lxc.mount.entry=/srv/{{ container_name }}_swift2 openstack/swift2 none bind 0 0"
delegate_to: "{{ physical_host }}"
- 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
delay: 1
delegate_to: "{{ physical_host }}"