mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-06-17 01:30:16 +00:00
26 lines
440 B
YAML
26 lines
440 B
YAML
---
|
|
# Install KVM packages
|
|
|
|
- name: Installing KVM Packages
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- qemu-kvm
|
|
- libvirt
|
|
- libvirt-python
|
|
- libguestfs-tools
|
|
- virt-install
|
|
|
|
- name: Enable and Start libvirtd
|
|
systemd:
|
|
name: libvirtd
|
|
state: started
|
|
enabled: yes
|
|
|
|
- name: Verify KVM module is loaded
|
|
shell: "lsmod | grep -i kvm"
|
|
register: result
|
|
failed_when: "result.rc != 0"
|
|
|