Handle differences between EL8 and EL9

This commit is contained in:
Anthony Rose 2021-11-16 13:36:24 +00:00
parent 2439b6d226
commit d7ef97c787

View file

@ -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