[PATCH 3/5] libvirt_user: fix enable-user tasks to include correct user enablement

Daniel Gomez <[email protected]>
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
From: Daniel Gomez <[email protected]>

The enable-user/main.yml was incorrectly including install-deps tasks
instead of the actual user enablement tasks. This caused the user
verification and group membership tasks to never execute.

Fixed to include the proper enable-user/* tasks for each distribution
instead of install-deps/* tasks.

Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>
---
 playbooks/roles/libvirt_user/tasks/enable-user/main.yml | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/playbooks/roles/libvirt_user/tasks/enable-user/main.yml b/playbooks/roles/libvirt_user/tasks/enable-user/main.yml
index 04f8e31f..ded8d188 100644
--- a/playbooks/roles/libvirt_user/tasks/enable-user/main.yml
+++ b/playbooks/roles/libvirt_user/tasks/enable-user/main.yml
@@ -1,20 +1,20 @@
 ---
-- name: Debian-specific set up
-  ansible.builtin.include_tasks: install-deps/debian/main.yml
+- name: Debian user enablement
+  ansible.builtin.include_tasks: enable-user/debian/main.yml
   when: ansible_os_family == 'Debian'
 
-- name: SuSE-specific set up
-  ansible.builtin.include_tasks: install-deps/suse/main.yml
+- name: SuSE user enablement
+  ansible.builtin.include_tasks: enable-user/suse/main.yml
   when: ansible_os_family == 'Suse'
 
-- name: Red Hat-specific set up
-  ansible.builtin.include_tasks: install-deps/redhat/main.yml
+- name: Red Hat user enablement
+  ansible.builtin.include_tasks: enable-user/redhat/main.yml
   when:
     - ansible_os_family == 'RedHat'
     - ansible_facts['distribution'] != "Fedora"
 
-- name: Fedora-specific set up
-  ansible.builtin.include_tasks: install-deps/fedora/main.yml
+- name: Fedora user enablement
+  ansible.builtin.include_tasks: enable-user/fedora/main.yml
   when:
     - ansible_os_family == 'RedHat'
     - ansible_facts['distribution'] == "Fedora"

-- 
2.50.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.