From d7ef97c787afb00d0024879dc8014662b82f7d26 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 16 Nov 2021 13:36:24 +0000 Subject: [PATCH] Handle differences between EL8 and EL9 --- roles/el/tasks/packages-gui.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/roles/el/tasks/packages-gui.yml b/roles/el/tasks/packages-gui.yml index 0d20981..2a9b55e 100644 --- a/roles/el/tasks/packages-gui.yml +++ b/roles/el/tasks/packages-gui.yml @@ -23,3 +23,24 @@ - git-gui - liberation-fonts - vim-X11 +- name: Install Gnome packages (EL 8) + become: true + ansible.builtin.dnf: + name: '{{ packages }}' + state: present + vars: + packages: + - gnome-shell-extension-dash-to-dock + - gnome-tweaks + when: gnome_shell.stat.exists and ansible_distribution_major_version == 8 +- name: Install Gnome packages (EL 9) + become: true + ansible.builtin.dnf: + name: '{{ packages }}' + state: present + vars: + packages: + - gnome-extensions-app + - gnome-shell-extension-dash-to-dock + - gnome-tweaks + when: gnome_shell.stat.exists and ansible_distribution_major_version == 9