summaryrefslogtreecommitdiffstats
path: root/roles/gnome
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-21 23:37:36 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-21 23:37:36 +0200
commite4af5cdb20fed9211e4b1a7c99b8ca5998259bcf (patch)
treeb6d23b17920c99e8c5d092eb0507b9a357537660 /roles/gnome
parent8d7eb8e4b2d299816c2d4a6574df9ddba038197b (diff)
Fix gnome on archlinux installing packages without administrator acc
The gnome on archlinux was lacking polkit and it's configuration and was failing to install any application from the gnome store
Diffstat (limited to 'roles/gnome')
-rw-r--r--roles/gnome/tasks/install-archlinux.yml16
-rw-r--r--roles/gnome/vars/archlinux.yml2
2 files changed, 18 insertions, 0 deletions
diff --git a/roles/gnome/tasks/install-archlinux.yml b/roles/gnome/tasks/install-archlinux.yml
index b70c2540..bd58c09d 100644
--- a/roles/gnome/tasks/install-archlinux.yml
+++ b/roles/gnome/tasks/install-archlinux.yml
@@ -10,3 +10,19 @@
ansible.builtin.systemd:
name: "gdm"
enabled: true
+
+- name: "Enable polkit service"
+ become: true
+ ansible.builtin.systemd:
+ name: "polkit"
+ enabled: true
+
+- name: "Configure polkit admin rule for sudo group"
+ become: true
+ ansible.builtin.copy:
+ dest: "/etc/polkit-1/rules.d/50-default.rules"
+ mode: "0644"
+ content: |
+ polkit.addAdminRule(function(action, subject) {
+ return ["unix-group:sudo"];
+ });
diff --git a/roles/gnome/vars/archlinux.yml b/roles/gnome/vars/archlinux.yml
index d889d18a..0dd84de7 100644
--- a/roles/gnome/vars/archlinux.yml
+++ b/roles/gnome/vars/archlinux.yml
@@ -2,3 +2,5 @@
gnome_packages:
- "gnome"
- "gdm"
+ - "polkit"
+ - "polkit-gnome"