Skip to content

Commit

Permalink
added libvirt service
Browse files Browse the repository at this point in the history
  • Loading branch information
fspv committed Dec 15, 2024
1 parent ba2e0ea commit 1cbfd9a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/libvirtd/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dependencies:
- { role: pkgmanager }
2 changes: 2 additions & 0 deletions roles/libvirtd/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- import_tasks: packages.yml
- import_tasks: services.yml
11 changes: 11 additions & 0 deletions roles/libvirtd/tasks/packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- name: package qemu-system
apt:
name: qemu-system

- name: package libvirt-daemon
apt:
name: libvirt-daemon

- name: package libvirt-daemon-system
apt:
name: libvirt-daemon-system
5 changes: 5 additions & 0 deletions roles/libvirtd/tasks/services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: service
systemd:
name: libvirtd
enabled: true
state: started
1 change: 1 addition & 0 deletions roles/ubuntu-devserver/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dependencies:
- { role: docker }
- { role: libvirtd }
- { role: et }
- { role: nvim }

0 comments on commit 1cbfd9a

Please sign in to comment.