bifrost/deploy.yaml
Julia Kreger e9a65bf67c Updating deploy.yaml to not use sudo globally
Changed deploy.yaml to not invoke sudo for the configdrive and
deployment roles in order to allow a user's key to be pulled into
the configuration drive instead of the root user key by default.
2015-03-23 18:53:56 -04:00

21 lines
689 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 }}"
- hosts: localhost
connection: local
name: "Enroll hardware from baremetal.csv into Ironic"
gather_facts: yes
roles:
- role: bifrost-configdrives
- role: bifrost-setup-nodes