2017-07-14 10:02:55 +02:00
|
|
|
# Build and install a docker image for nova-controller.
|
|
|
|
---
|
2017-08-01 10:19:54 +02:00
|
|
|
- set_fact:
|
|
|
|
docker_image: webhost12.service.rug.nl/hpc/openstack-nova-compute:latest
|
|
|
|
tags: facts
|
|
|
|
|
2017-07-31 13:21:03 +02:00
|
|
|
- name: pull docker image
|
|
|
|
docker_image:
|
2017-08-01 10:19:54 +02:00
|
|
|
name: "{{ docker_image }}"
|
2017-07-31 13:21:03 +02:00
|
|
|
tags: pull
|
|
|
|
|
2017-07-14 10:02:55 +02:00
|
|
|
- name: install service file.
|
|
|
|
template:
|
|
|
|
src: templates/nova-compute.service
|
|
|
|
dest: /etc/systemd/system/nova-compute.service
|
|
|
|
mode: 644
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
|
|
|
|
- command: systemctl daemon-reload
|
|
|
|
|
|
|
|
- apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
with_items:
|
|
|
|
- kvm
|
|
|
|
- libvirt0
|
|
|
|
- libvirt-bin
|
|
|
|
- qemu
|
|
|
|
|
|
|
|
- name: make sure service is started
|
|
|
|
systemd:
|
|
|
|
name: nova-compute.service
|
|
|
|
state: restarted
|