Add virtual role
This commit is contained in:
parent
30e981e7d0
commit
2bee86c79e
19
roles/virtual/tasks/libvirt.yml
Normal file
19
roles/virtual/tasks/libvirt.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
- name: install libvirt packages
|
||||||
|
become: yes
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
pkg:
|
||||||
|
- virt-viewer
|
||||||
|
- virt-manager
|
||||||
|
- qemu-kvm
|
||||||
|
- libvirt-daemon-system
|
||||||
|
- libvirt-clients
|
||||||
|
- bridge-utils
|
||||||
|
|
||||||
|
- name: ensure that your user is added to the group libvirtd
|
||||||
|
become: yes
|
||||||
|
user:
|
||||||
|
name: "{{ ansible_user_id }}"
|
||||||
|
append: yes
|
||||||
|
groups: libvirt, kvm
|
Loading…
Reference in New Issue
Block a user