195245b98e
Moved template file locations to the correct role. Corrected syntax error in deploy.yaml. Removed "templates/" path from template entires as it is not required when using a role. Added fact collection into roles where required as passing vars between roles does not seem clean nor maintainable in the long run.
16 lines
564 B
YAML
16 lines
564 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: ironic-deploy
|
|
baremetal_csv_file: "{{ baremetal_csv_file }}"
|
|
- role: bifrost-configdrives
|
|
- role: bifrost-setup-nodes
|