diff mbox series

[08/12] ansible: Install libvirt deps and enable user

Message ID 20241218-jag-bringup_fixes-v1-8-0bf2e07c640c@kernel.org (mailing list archive)
State New
Headers show
Series kdevops: Various fixes | expand

Commit Message

Joel Granados Dec. 18, 2024, 10:30 a.m. UTC
There is a need to setup libvirt when running `make bringup` in a system
that does not have libvirt installed. Call the dpendency install and
user enablement roles from the bringup task.

Signed-off-by: Joel Granados <joel.granados@kernel.org>
---
 playbooks/roles/bringup_guestfs/tasks/main.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff mbox series

Patch

diff --git a/playbooks/roles/bringup_guestfs/tasks/main.yml b/playbooks/roles/bringup_guestfs/tasks/main.yml
index 95631aa..c764ae4 100644
--- a/playbooks/roles/bringup_guestfs/tasks/main.yml
+++ b/playbooks/roles/bringup_guestfs/tasks/main.yml
@@ -38,6 +38,18 @@ 
   when: guestfs_subdirectories.matched == 0
   tags: [ 'config-check' ]
 
+- name: Use install-dep tasks from libvirt_user role to install libvirt deps
+  include_role:
+    name: libvirt_user
+    tasks_from: install-deps/main.yml
+  tags: [ 'network' ]
+
+- name: Use enable-user tasks from libvirt_user role to enable user
+  include_role:
+    name: libvirt_user
+    tasks_from: enable-user/main.yml
+  tags: [ 'network' ]
+
 - name: Check for dnsmasq configuration files
   stat:
     path: "{{ item }}"