extra network interface for TIA VM

This commit is contained in:
Raphael Dannecker 2023-11-15 13:46:35 +01:00 committed by Andreas B. Mundt
parent 5b652b0e28
commit 47844f3019
3 changed files with 59 additions and 6 deletions

View file

@ -54,7 +54,7 @@
lineinfile:
path: /etc/libvirt/qemu/networks/default.xml
line: ' <domain name="{{ ansible_domain }}" localOnly="no"/>'
insertafter: '<mac '
insertafter: '</ip>'
- name: Autostart default network for VMs
file:
@ -158,12 +158,17 @@
mode: '0644'
notify: "enable vmimage-torrent.service"
- name: Prepare directory for qemu bridge config
ansible.builtin.file:
path: /etc/qemu/
state: directory
- name: Deploy bridge.conf needed for qemu session mode
lineinfile:
path: /etc/qemu/bridge.conf
line: 'allow virbr0'
create: True
mode: '0655'
ansible.builtin.copy:
dest: /etc/qemu/bridge.conf
content: |
allow virbr0
allow virbr1
- name: Deploy rsync.secret
lineinfile: