c2771d7c0e
Configures a host as a Libvirt/KVM hypervisor. It can also create pools and networks
20 lines
364 B
YAML
20 lines
364 B
YAML
---
|
|
- name: Ensure the libvirt package is installed
|
|
yum:
|
|
name: "{{ item }}"
|
|
state: installed
|
|
with_items:
|
|
- libvirt
|
|
- libvirt-daemon-kvm
|
|
- libvirt-python
|
|
- python-lxml
|
|
- qemu-kvm
|
|
become: True
|
|
|
|
- name: Ensure the libvirt daemon is started and enabled
|
|
service:
|
|
name: libvirtd
|
|
state: running
|
|
enabled: yes
|
|
become: True
|