summaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/openstack/tasks/main.yml
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2018-03-15 10:19:32 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-15 10:19:32 +0000
commit8a48109629da87172ae0468769aac045643aa627 (patch)
treea08c958cd6731911fc8aa383b0401686df174ba1 /resources/ansible_roles/openstack/tasks/main.yml
parent03db56111d476465e37a3e005cdd6b9e21fc945f (diff)
parent18750deda8fa4ebfd5948912438266c32c5ad3ed (diff)
Merge "adjust the execution pipeline for vnf"
Diffstat (limited to 'resources/ansible_roles/openstack/tasks/main.yml')
-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)