2017-07-12 16:32:58 +02:00
|
|
|
# Run hpc/horizon
|
2017-07-05 09:03:45 +02:00
|
|
|
---
|
2017-08-01 10:19:54 +02:00
|
|
|
- set_fact:
|
2018-08-16 16:27:45 +02:00
|
|
|
docker_image: registry.webhosting.rug.nl/hpc/openstack-horizon-merlin:latest
|
2017-08-01 10:19:54 +02:00
|
|
|
|
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-08-17 15:50:39 +02:00
|
|
|
force: True
|
2017-07-31 13:21:03 +02:00
|
|
|
tags: pull
|
|
|
|
|
2018-08-16 16:27:45 +02:00
|
|
|
- name: Make persistent directories
|
|
|
|
file:
|
|
|
|
path: /srv/horizon/certs
|
|
|
|
state: directory
|
|
|
|
mode: 0750
|
|
|
|
|
|
|
|
- name: install ssl files
|
|
|
|
template:
|
|
|
|
src: templates/certs/{{ item }}
|
|
|
|
dest: /srv/horizon/certs/{{ item }}
|
|
|
|
mode: 400
|
|
|
|
with_items:
|
|
|
|
- merlin.hpc.rug.nl.key
|
|
|
|
- merlin.hpc.rug.nl.crt
|
|
|
|
- DigiCertCA.crt
|
|
|
|
|
2017-07-05 09:03:45 +02:00
|
|
|
- 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
|
|
|
|
|
2017-08-31 15:02:47 +02:00
|
|
|
- name: start service at boot.
|
|
|
|
command: systemctl reenable horizon.service
|
|
|
|
|
2017-07-05 09:03:45 +02:00
|
|
|
- name: make sure service is started
|
|
|
|
systemd:
|
|
|
|
name: horizon.service
|
|
|
|
state: restarted
|