extra network interface for TIA VM
This commit is contained in:
parent
5b652b0e28
commit
47844f3019
3 changed files with 59 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue