bifrost/playbooks/enroll-dynamic.yaml
Andrey Shestakov 15fc6973e7 Allow enroll-dynamic on remote host
This change allows enroll nodes on remote server with installed Ironic.

Change-Id: Ic1211a4baebc1f807779261f4ed050ba6cdc177a
2017-02-01 15:01:31 +00:00

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