mirror of
https://gitlab.com/dbrw/ansible-setup.git
synced 2026-02-06 18:00:42 +07:00
update virtualization tasks
This commit is contained in:
@@ -24,11 +24,17 @@
|
||||
append: True
|
||||
user: "{{ username }}"
|
||||
|
||||
- name: Enable libvirt service
|
||||
ansible.builtin.systemd:
|
||||
name: libvirtd
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: Define a new network for virtualization
|
||||
community.libvirt.virt_net:
|
||||
command: define
|
||||
name: jungle
|
||||
xml: '{{ lookup("template", "libvirt/jungle.xml") }}'
|
||||
xml: '{{ lookup("template", "libvirt/jungle.xml.j2") }}'
|
||||
|
||||
- name: Ensure virtualization network active
|
||||
community.libvirt.virt_net:
|
||||
|
||||
Reference in New Issue
Block a user