From da8f6fd9ff5b7edbe4b38eb644f6d0c37fce77a5 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Fri, 11 Aug 2023 19:01:10 +0200 Subject: [PATCH] Start libvirt after installation --- roles/libvirt/tasks/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/roles/libvirt/tasks/main.yml b/roles/libvirt/tasks/main.yml index 933f478..2c1a023 100644 --- a/roles/libvirt/tasks/main.yml +++ b/roles/libvirt/tasks/main.yml @@ -23,6 +23,13 @@ - virt-viewer 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 become: true ansible.builtin.user: @@ -67,10 +74,3 @@ autostart: true name: "{{ pool_name }}" uri: "qemu:///session" - -- name: Start and enable libvirtd service - become: true - ansible.builtin.systemd: - name: libvirtd - enabled: true - state: started