File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
roles/validate_inventory/tasks Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4545 quiet : true
4646 fail_msg : " Node {{ item }} must have either bmc_ip"
4747 loop : " {{ groups['nodes'] }}"
48+ when : hostvars[item]['vendor'] | lower != 'pxe'
4849
4950- name : Assert bmc_ip is correct type
5051 assert :
Original file line number Diff line number Diff line change 11---
22# Node `ansible_host`s are not pinged. They are not required to be running at this stage.
33# KVM node BMCs are not checked, the vm_host will be pinged later.
4+ # PXE node BMCs are not checked because it is not required
45- name : Ensure baremetal node BMCs are reachable
56 shell : # noqa 305
6- cmd : " ping -c 1 -W 2 {{ hostvars[item]['bmc_ip'] | default(hostvars[item]['bmc_address']) }}"
7+ cmd : " nc -vz -u {{ hostvars[item]['bmc_ip'] | default(hostvars[item]['bmc_address']) }}"
78 changed_when : False
8- when : hostvars[item]['vendor'] | lower != 'kvm'
9+ when : ( hostvars[item]['vendor'] | lower != 'kvm') and (hostvars[item]['vendor'] | lower != 'pxe')
910 loop : " {{ groups['nodes'] }}"
1011
1112- name : Ensure service hosts are reachable
You can’t perform that action at this time.
0 commit comments