
This commit adds simple roles to manage: - libvirt service, domains, volumes, networks and pools. - redfish-emulator role installs sushy-tools from pip, together with support packages Please note, that libvirt roles are not meant to be completely idempotent, their main job is deploy temporary resources that for ci and gating purposes, to be tore down afterwards. Roles are specifically made to be simple to debug, and don't contain any complex logic to make them portable, flexible or idempotent. Change-Id: I2ff0138b5c95bea3445e242a2e5061651498f1ab
23 lines
543 B
YAML
23 lines
543 B
YAML
- name: Include test variables.
|
|
include_vars:
|
|
file: vars.yml
|
|
- name: install libvirt
|
|
include_role:
|
|
name: libvirt-install
|
|
- name: create pool
|
|
include_role:
|
|
name: libvirt-pool
|
|
vars:
|
|
ansible_become: true
|
|
- name: get pool information
|
|
virt_pool:
|
|
command: info
|
|
become: true
|
|
register: storage_pools
|
|
|
|
- name: check if pool is available and is at given directory
|
|
assert:
|
|
that:
|
|
- "storage_pools.pools.test_pool.path == '/var/lib/libvirt/my-pool'"
|
|
- "storage_pools.pools.test_pool.status == 'running'"
|