bifrost/playbooks/enroll-dynamic.yaml
Riccardo Pittau a756129b47 Fix key-order ansible errors
Also fix some spacing warnings

Change-Id: Iec191273591ee88710438f3bbbf63ec242d0c247
2023-11-09 11:16:49 +01:00

17 lines
514 B
YAML

---
- name: "Gather facts on localhost"
hosts: localhost
become: no
gather_facts: yes
- name: "Enroll hardware from inventory into Ironic"
hosts: baremetal
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' }}"