summaryrefslogtreecommitdiffstats
path: root/xci/infra/bifrost/playbooks/wait-for-baremetal.yml
blob: cb42cc497e4976a933e4a4a1b59b0536aad813f8 (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=240
      delegate_to: opnfv
    - name: "Wait for nodes to become available."
      wait_for: state=started port=22 host={{ ipv4_address }} timeout=3600
      delegate_to: opnfv