a756129b47
Also fix some spacing warnings Change-Id: Iec191273591ee88710438f3bbbf63ec242d0c247
17 lines
514 B
YAML
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' }}"
|