kayobe/ansible/roles/libvirt-host/tasks/install.yml
Mark Goddard c2771d7c0e Add libvirt-host role
Configures a host as a Libvirt/KVM hypervisor. It can also create pools and networks
2017-08-07 12:08:08 +00:00

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