bifrost/playbooks/install.yaml
stephane a5cc06517e Generalize the dib builder role
Allow the role to accept all possible arguments to disk-image-builder. Also,
modify the dib role to allow ramdisk builds using ramdisk-image-builder, i.e.
for the ironic inspector.

Implements: blueprint bifrost-inspector-support
Change-Id: I2dc12e5033100ad5e8d7893c47b3bb00a57ab0a5
2015-07-22 15:34:51 -07:00

15 lines
697 B
YAML

---
- hosts: localhost
name: "Install Ironic on the local host."
connection: local
sudo: yes
gather_facts: yes
roles:
- { role: bifrost-prep-for-install, when: skip_install is not defined }
- ironic-install
- { role: bifrost-create-dib-image, dib_imagename: deploy_image, dib_imagetype: "qcow2", dib_os_element: "debian", dib_elements: "vm serial-console simple-init", when: create_image_via_dib == true and transform_boot_image == false }
- { role: bifrost-create-bootable-image, when: create_image_via_dib == false and transform_boot_image == true }
environment:
http_proxy: "{{ lookup('env','http_proxy') }}"
https_proxy: "{{ lookup('env','https_proxy') }}"