hpc-cloud/roles/horizon/tasks/main.yml

26 lines
511 B
YAML
Raw Permalink Normal View History

# Run hpc/horizon
---
2017-08-01 10:19:54 +02:00
- set_fact:
docker_image: webhost12.service.rug.nl/hpc/openstack-horizon:latest
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 }}"
force: True
2017-07-31 13:21:03 +02:00
tags: pull
- name: install service file.
template:
src: templates/horizon.service
dest: /etc/systemd/system/horizon.service
mode: 644
owner: root
group: root
- command: systemctl daemon-reload
- name: make sure service is started
systemd:
name: horizon.service
state: restarted