Make systemd unit file install
.. without running other tasks
This commit is contained in:
parent
11f660a51f
commit
5ab3e6565e
|
@ -2,6 +2,8 @@
|
|||
- hosts: all
|
||||
name: Dummy to gather facts
|
||||
tasks: []
|
||||
tags:
|
||||
- facts
|
||||
|
||||
- hosts: cinder-controller
|
||||
become: True
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
include_vars:
|
||||
file: ../../secrets.yml
|
||||
name: secrets
|
||||
tags:
|
||||
- facts
|
||||
|
||||
- set_fact:
|
||||
docker_image: registry.webhosting.rug.nl/hpc/openstack-cinder-controller:latest
|
||||
|
@ -21,6 +23,8 @@
|
|||
-e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}"
|
||||
-e "RABBIT_USER=openstack"
|
||||
-e "RBD_SECRET_UUID={{ secrets['CINDER_RBD_SECRET_UUID']}}"
|
||||
tags:
|
||||
- facts
|
||||
|
||||
- name: pull docker image
|
||||
docker_image:
|
||||
|
@ -43,11 +47,17 @@
|
|||
mode: 644
|
||||
owner: root
|
||||
group: root
|
||||
tags:
|
||||
- systemd
|
||||
|
||||
- name: start service at boot.
|
||||
command: systemctl reenable cinder-controller.service
|
||||
tags:
|
||||
- systemd
|
||||
|
||||
- command: systemctl daemon-reload
|
||||
tags:
|
||||
- systemd
|
||||
|
||||
- name: Initialize database.
|
||||
command: >
|
||||
|
|
Loading…
Reference in New Issue