Fatih Degirmenci | 50b146b | 2019-05-10 14:11:57 +0200 | [diff] [blame^] | 1 | --- |
| 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 |
| 22 | become: yes |
| 23 | gather_facts: true |
| 24 | vars_files: |
| 25 | - "{{ engine_path }}/engine/var/versions.yml" |
| 26 | - "{{ engine_path }}/engine/var/global.yml" |
| 27 | - "{{ pdf_file }}" |
| 28 | - "{{ idf_file }}" |
| 29 | |
| 30 | roles: |
| 31 | - role: prepare-libvirt |
| 32 | - role: create-libvirt-networks |
| 33 | - role: create-libvirt-vms |
| 34 | |
| 35 | tasks: |
| 36 | - name: Get libvirt networks |
| 37 | command: virsh net-list --all |
| 38 | register: libvirt_networks |
| 39 | |
| 40 | - name: List libvirt networks |
| 41 | debug: |
| 42 | msg: "{{ libvirt_networks.stdout_lines }}" |
| 43 | |
| 44 | - name: Get libvirt vms |
| 45 | command: virsh list --all |
| 46 | register: libvirt_vms |
| 47 | |
| 48 | - name: List libvirt vms |
| 49 | debug: |
| 50 | msg: "{{ libvirt_vms.stdout_lines }}" |
| 51 | |
| 52 | - name: Get list of nodes from vbmc |
| 53 | command: vbmc list |
| 54 | environment: |
| 55 | PATH: "{{ lookup('env', 'ENGINE_VENV') }}/bin" |
| 56 | register: vbmc_vms |
| 57 | |
| 58 | - name: List vbmc nodes |
| 59 | debug: |
| 60 | msg: "{{ vbmc_vms.stdout_lines }}" |
| 61 | |
| 62 | # vim: set ts=2 sw=2 expandtab: |