e4d0325b2f
Don't compare to literal True/False Change-Id: I671978ac95de03d80b059d42f188e9fc9aecb4b4
12 lines
425 B
YAML
12 lines
425 B
YAML
---
|
|
- hosts: baremetal
|
|
name: "Enroll hardware from inventory into Ironic"
|
|
become: no
|
|
gather_facts: no
|
|
roles:
|
|
- role: ironic-enroll-dynamic
|
|
delegate_to: "{{ groups['target'][0] if groups['target'] is defined else 'localhost' }}"
|
|
- role: ironic-inspect-node
|
|
when: inspect_nodes | default('false') | bool
|
|
delegate_to: "{{ groups['target'][0] if groups['target'] is defined else 'localhost' }}"
|