Test Case: OPNFV_YARDSTICK_TC023: VM availability during live migration
[yardstick.git] / ansible / roles / restart_nova_service / tasks / main.yaml
1 ---
2 ##############################################################################
3 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 - name: restart "{{ service }}" service
12   service:
13     name: "{{ service }}"
14     state: restarted
15   become: true
16   when: ansible_os_family == "Debian"
17
18 - name: restart "openstack-{{ service }}" service
19   service:
20     name: "openstack-{{ service }}"
21     state: restarted
22   become: true
23   when: ansible_os_family == "RedHat"