bifrost/playbooks/enroll-dynamic.yaml
Riccardo Pittau e4d0325b2f Fix error 601
Don't compare to literal True/False

Change-Id: I671978ac95de03d80b059d42f188e9fc9aecb4b4
2020-09-02 11:41:11 +02:00

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' }}"