Start libvirt after installation
This commit is contained in:
parent
96b794ec74
commit
da8f6fd9ff
1 changed files with 7 additions and 7 deletions
|
@ -23,6 +23,13 @@
|
||||||
- virt-viewer
|
- virt-viewer
|
||||||
when: ansible_facts['distribution'] == 'Debian'
|
when: ansible_facts['distribution'] == 'Debian'
|
||||||
|
|
||||||
|
- name: Start and enable libvirtd service
|
||||||
|
become: true
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: libvirtd
|
||||||
|
enabled: true
|
||||||
|
state: started
|
||||||
|
|
||||||
- name: Add user to libvirt group
|
- name: Add user to libvirt group
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
|
@ -67,10 +74,3 @@
|
||||||
autostart: true
|
autostart: true
|
||||||
name: "{{ pool_name }}"
|
name: "{{ pool_name }}"
|
||||||
uri: "qemu:///session"
|
uri: "qemu:///session"
|
||||||
|
|
||||||
- name: Start and enable libvirtd service
|
|
||||||
become: true
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
name: libvirtd
|
|
||||||
enabled: true
|
|
||||||
state: started
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue