From 4dfd877c7f20c48747dce1e33dd8824cc9ac31dc Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:28 -0400 Subject: [PATCH] Ensure Admin users are in additional groups --- roles/pvc/tasks/ceph/main.yml | 7 +++++++ roles/pvc/tasks/libvirt/main.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/roles/pvc/tasks/ceph/main.yml b/roles/pvc/tasks/ceph/main.yml index 00957eb..c26045f 100644 --- a/roles/pvc/tasks/ceph/main.yml +++ b/roles/pvc/tasks/ceph/main.yml @@ -9,6 +9,13 @@ - radosgw state: latest +- name: add admin users to ceph groups + user: + name: "{{ item.name }}" + groups: ceph + append: yes + with_items: "{{ admin_users }}" + - name: install sysctl tweaks template: src: ceph/sysctl.conf.j2 diff --git a/roles/pvc/tasks/libvirt/main.yml b/roles/pvc/tasks/libvirt/main.yml index a817ef1..e6ec10f 100644 --- a/roles/pvc/tasks/libvirt/main.yml +++ b/roles/pvc/tasks/libvirt/main.yml @@ -17,6 +17,13 @@ groups: ceph append: yes +- name: add admin users to libvirt groups + user: + name: "{{ item.name }}" + groups: kvm,libvirt + append: yes + with_items: "{{ admin_users }}" + - name: install libvirt configuration template: src: libvirt/{{ item }}.j2