15fc6973e7
This change allows enroll nodes on remote server with installed Ironic. Change-Id: Ic1211a4baebc1f807779261f4ed050ba6cdc177a
12 lines
433 B
YAML
12 lines
433 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 == true
|
|
delegate_to: "{{ groups['target'][0] if groups['target'] is defined else 'localhost' }}"
|