blob: 60784748676470a25ce0a30085e267382b60c02e [file] [log] [blame]
Fatih Degirmenci50b146b2019-05-10 14:11:57 +02001---
2# ============LICENSE_START=======================================================
3# Copyright (C) 2019 The Nordix Foundation. All rights reserved.
4# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
20- hosts: localhost
21 connection: local
Fatih Degirmencif9cf5492020-01-12 22:35:53 +000022 become: true
Fatih Degirmenci50b146b2019-05-10 14:11:57 +020023 gather_facts: true
Fatih Degirmenci50b146b2019-05-10 14:11:57 +020024
25 roles:
26 - role: prepare-libvirt
27 - role: create-libvirt-networks
28 - role: create-libvirt-vms
29
30 tasks:
31 - name: Get libvirt networks
32 command: virsh net-list --all
33 register: libvirt_networks
Fatih Degirmencidf251d52019-12-11 13:43:10 +010034 changed_when: false
Fatih Degirmenci50b146b2019-05-10 14:11:57 +020035
36 - name: List libvirt networks
37 debug:
38 msg: "{{ libvirt_networks.stdout_lines }}"
39
40 - name: Get libvirt vms
41 command: virsh list --all
42 register: libvirt_vms
Fatih Degirmencidf251d52019-12-11 13:43:10 +010043 changed_when: false
Fatih Degirmenci50b146b2019-05-10 14:11:57 +020044
45 - name: List libvirt vms
46 debug:
47 msg: "{{ libvirt_vms.stdout_lines }}"
48
49 - name: Get list of nodes from vbmc
50 command: vbmc list
Fatih Degirmencidf251d52019-12-11 13:43:10 +010051 register: vbmc_vms
52 changed_when: false
Fatih Degirmenci50b146b2019-05-10 14:11:57 +020053 environment:
Vamsi Savaram6580c932019-08-06 12:42:02 +000054 PATH: "{{ engine_venv }}/bin"
Fatih Degirmenci50b146b2019-05-10 14:11:57 +020055
56 - name: List vbmc nodes
57 debug:
58 msg: "{{ vbmc_vms.stdout_lines }}"
59
60# vim: set ts=2 sw=2 expandtab: