Convert default libvirtd to template

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:28 -04:00
parent aa6b4ac3dc
commit 9fe43efac2
2 changed files with 10 additions and 3 deletions

View File

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