summaryrefslogtreecommitdiffstats
path: root/docker/services/nova-libvirt.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-08-18 09:17:15 +0000
committerGerrit Code Review <review@openstack.org>2017-08-18 09:17:15 +0000
commit9436d87e7e3b2767bf8dcb69e9fc0eb62173e6fb (patch)
tree927d899f4b6e43abc630cad6ea06f9a98f6439f7 /docker/services/nova-libvirt.yaml
parent79b3c12e15d66ca652bdc7285b9291d228e31194 (diff)
parentf7a84702de0984f77a24da0737408ada019e602a (diff)
Merge "Refactor setup_docker_host.sh as host_prep_tasks"
Diffstat (limited to 'docker/services/nova-libvirt.yaml')
-rw-r--r--docker/services/nova-libvirt.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/docker/services/nova-libvirt.yaml b/docker/services/nova-libvirt.yaml
index 7637e6e9..62c25bb2 100644
--- a/docker/services/nova-libvirt.yaml
+++ b/docker/services/nova-libvirt.yaml
@@ -243,6 +243,19 @@ outputs:
file:
path: /etc/ceph
state: directory
+ - name: check if libvirt is installed
+ command: /usr/bin/rpm -q libvirt-daemon
+ failed_when: false
+ register: libvirt_installed
+ - name: make sure libvirt services are disabled
+ service:
+ name: "{{ item }}"
+ state: stopped
+ enabled: no
+ with_items:
+ - libvirtd.service
+ - virtlogd.socket
+ when: libvirt_installed.rc == 0
upgrade_tasks:
- name: Stop and disable libvirtd service
tags: step2