Browse Source

Merge pull request #523 from tomassedovic/wait_for_connection

Use wait_for_connection for the Heat nodes
Bogdan Dobrelya 7 years ago
parent
commit
47f262e1d3
1 changed files with 7 additions and 3 deletions
  1. 7 3
      playbooks/provisioning/openstack/provision-openstack.yml

+ 7 - 3
playbooks/provisioning/openstack/provision-openstack.yml

@@ -39,14 +39,18 @@
   - meta: refresh_inventory
 
 - hosts: cluster_hosts
+  name: Wait for the the nodes to come up
+  become: False
+  gather_facts: False
+  tasks:
+  - wait_for_connection:
+
+- hosts: cluster_hosts
   gather_facts: True
   tasks:
   - name: Debug hostvar
     debug:
       msg: "{{ hostvars[inventory_hostname] }}"
       verbosity: 2
-  - name: waiting for server to come back
-    local_action: wait_for host={{ hostvars[inventory_hostname]['ansible_ssh_host'] }} port=22 delay=30 timeout=300
-    become: false
 
 - include: post-provision-openstack.yml