kayobe/ansible/roles/dell-switch-bmp/tasks/main.yml
Mark Goddard 20fdea4bde Add support for Bare Metal Provisioning (BMP) of Dell switches via seed
We extend the configuration of the Bifrost dnsmasq server on the seed to
support Bare Metal Provisioning of Dell switches.
2017-03-24 16:14:48 +00:00

23 lines
692 B
YAML

---
- name: Ensure dnsmasq configuration is present
template:
src: dell-switch-bmp.conf.j2
dest: /etc/kolla/bifrost/dell-switch-bmp.conf
notify:
- Copy dnsmasq configuration
- Restart bifrost dnsmasq
become: True
- name: Ensure Dell BMP installer images are downloaded
get_url:
url: "{{ item.url }}"
dest: "/etc/kolla/bifrost/{{ item.dest }}"
# If no checksum is provided, download images every time to ensure changes
# are pulled.
force: "{{ omit if item.checksum is defined else 'yes' }}"
checksum: "{{ item.checksum | default(omit) }}"
with_items: "{{ dell_switch_bmp_images }}"
notify:
- Copy Dell switch BMP images
become: True