Skip to content

Commit

Permalink
feat: auto-start of libvirt default network (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
enjenjenje authored Sep 16, 2024
1 parent a641ac0 commit 64b04e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/prerequisites/meta/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
collections:
- community.libvirt
9 changes: 9 additions & 0 deletions roles/prerequisites/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
- qemu-kvm
- libvirt-daemon-system
- virt-manager
- python3-lxml
- dnsmasq

loop_control:
loop_var: package
label: "{{ package }}"
Expand All @@ -22,3 +25,9 @@
state: started
enabled: true
daemon_reload: true

- name: enable default network
community.libvirt.virt_net:
autostart: true
state: active
name: default

0 comments on commit 64b04e4

Please sign in to comment.