Convert default libvirtd to template

This commit is contained in:
Joshua Boniface 2022-01-01 01:50:54 -05:00
parent 4b6fdf301f
commit 7b07a81eca
2 changed files with 10 additions and 3 deletions

View File

@ -43,10 +43,9 @@
ignore_errors: true
- name: configure libvirt for listening
replace:
template:
src: libvirt/libvirtd.default.j2
dest: /etc/default/libvirtd
regexp: '#libvirtd_opts=""'
replace: 'libvirtd_opts="--listen"'
notify: restart libvirtd
- name: install systemd unit file (override default on Bullseye)

View File

@ -0,0 +1,8 @@
# Defaults for libvirtd initscript (/etc/init.d/libvirtd)
# {{ ansible_managed }}
# Start libvirtd to handle qemu/kvm:
start_libvirtd="yes"
# options passed to libvirtd, add "-l" to listen on tcp
libvirtd_opts="--listen"