You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
920 B

# Build and install a docker image for glance.
- name: Make build and persistent directories
path: "{{ item }}"
state: directory
mode: 0777
- /srv/glance
## Todo: remove this when we have a docker repo
#- name: clone docker-glance repo
# git:
# accept_hostkey: True
# repo: ssh://
# dest: /srv/glance
- name: build glance image
path: /srv/glance
name: hpc/openstack-glance
- name: install service file.
src: templates/glance.service
dest: /etc/systemd/system/glance.service
mode: 644
owner: root
group: root
- command: systemctl daemon-reload
- name: Initialize database.
command: docke run --rm hpc/openstack-glance /etc/
tags: bootstrap
- name: make sure service is started
name: glance.service
state: restarted