Convert default libvirtd to template
This commit is contained in:
parent
4b6fdf301f
commit
7b07a81eca
|
@ -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)
|
||||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue