aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/openstack
diff options
context:
space:
mode:
Diffstat (limited to 'resources/ansible_roles/openstack')
-rw-r--r--resources/ansible_roles/openstack/tasks/main.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/resources/ansible_roles/openstack/tasks/main.yml b/resources/ansible_roles/openstack/tasks/main.yml
index b42c43fb..57942260 100644
--- a/resources/ansible_roles/openstack/tasks/main.yml
+++ b/resources/ansible_roles/openstack/tasks/main.yml
@@ -86,6 +86,14 @@
external_network: "{{ external_network }}"
register: stack
+- name: Wait 600s for vm connection to become reachable/usable
+ wait_for:
+ host: "{{ item.output_value }}"
+ port: 22
+ timeout: 600
+ search_regex: OpenSSH
+ with_items: "{{ stack.stack.outputs }}"
+
- name: generating inventory file
template:
src: hosts.j2
@@ -95,9 +103,3 @@
template:
src: ssh.cfg.j2
dest: ./ssh.cfg
-
-- name: Wait 600 seconds for target connection to become reachable/usable
- wait_for_connection:
-
-- name: install python 2
- raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal)