7f9700209c
Changed the name of the ironic-deploy role to bifrost-validate-host-for-deploy to be in-line with what the role actually does which is perform basic node validation before the process proceeds.
21 lines
708 B
YAML
21 lines
708 B
YAML
---
|
|
- hosts: localhost
|
|
connection: local
|
|
name: "Enroll hardware from baremetal.csv into Ironic"
|
|
sudo: yes
|
|
gather_facts: yes
|
|
pre_tasks:
|
|
- name: "Error if variable baremetal_csv_file is not defined"
|
|
local_action: fail msg="baremetal_csv_file must be defined for this playbook to execute, please pass option '-e baremetal_csv_file=<path/to/file>'"
|
|
when: baremetal_csv_file is not defined
|
|
roles:
|
|
- role: bifrost-validate-host-for-deploy
|
|
baremetal_csv_file: "{{ baremetal_csv_file }}"
|
|
- hosts: localhost
|
|
connection: local
|
|
name: "Enroll hardware from baremetal.csv into Ironic"
|
|
gather_facts: yes
|
|
roles:
|
|
- role: bifrost-configdrives
|
|
- role: bifrost-setup-nodes
|