
This PS removes privilege escalation from the roles so that these roles can be used in a developer environment Change-Id: I44ddc18532ee75b0d398896d470ecf949ad4496a
20 lines
495 B
YAML
20 lines
495 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
|
|
- name: get pool information
|
|
virt_pool:
|
|
command: info
|
|
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'"
|