blob: 96aab29c07f6d34cbe5cf81533dd1fbe5021be99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# ironic needs to boot the server again to install the OS in the hard drive
# we are currently modifying opnfv vm networking config while ironic is
# doing that and it sometimes fail because of networking glitches. We should
# wait until the OS is installed to do the opnfv config
- hosts: baremetal
name: "Wait for baremetal blades to be ready"
become: no
gather_facts: False
tasks:
- name: "Wait for nodes to reboot."
wait_for: state=stopped port=22 host={{ ipv4_address }} timeout=5000
delegate_to: opnfv
- name: "Wait for nodes to become available."
wait_for: state=started port=22 host={{ ipv4_address }} timeout=5000
delegate_to: opnfv
|