Kostiantyn Kalynovskyi 68157859a7 Add ansible roles for sushy and libvirt
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
2020-01-13 23:08:11 +00:00

21 lines
664 B
YAML

---
- name: Check network interface has a network name
fail:
msg: >
The interface definition {{ interface }} has type 'network', but does not have
a network name defined.
when:
- interface.type is not defined or
interface.type == 'network'
- interface.network is not defined
- name: Check direct interface has an interface device name
fail:
msg: >
The interface definition {{ interface }} has type 'direct', but does not have
a host source device defined.
when:
- interface.type is defined
- interface.type == 'direct'
- interface.source is not defined or
interface.source.dev is not defined