diff --git a/roles/nox/defaults/main.yml b/roles/nox/defaults/main.yml index 37df5b3..5a55188 100644 --- a/roles/nox/defaults/main.yml +++ b/roles/nox/defaults/main.yml @@ -17,8 +17,9 @@ nox_unit_file: | Environment="FLUENCE_ROOT_KEY_PAIR__PATH={{ nox_dir }}/state/root_secret_key.ed25519" ExecStart={{ nox_dir }}/nox Restart=on-failure - User={{ nox_user }} + User=root Group={{ nox_group }} [Install] WantedBy=multi-user.target + diff --git a/roles/prerequisites/tasks/main.yml b/roles/prerequisites/tasks/main.yml index 8c41bf6..33f7872 100644 --- a/roles/prerequisites/tasks/main.yml +++ b/roles/prerequisites/tasks/main.yml @@ -9,6 +9,15 @@ loop: - libhwloc-dev - curl + - qemu-kvm + - libvirt-daemon-system loop_control: loop_var: package label: "{{ package }}" + +- name: enable libvirtd + ansible.builtin.systemd: + name: libvirtd + state: started + enabled: true + daemon_reload: true