Clean up GUI packages

This commit is contained in:
Anthony Rose 2022-01-25 18:03:10 +00:00
parent c479014bd7
commit a7138914a0

View file

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
- name: Install GUI packages - name: Install GUI packages (EL 8)
become: true become: true
ansible.builtin.dnf: ansible.builtin.dnf:
name: '{{ packages }}' name: '{{ packages }}'
@ -21,32 +21,26 @@
vars: vars:
packages: packages:
- git-gui - git-gui
- gnome-shell-extension-dash-to-dock
- gnome-tweaks
- google-noto-sans-fonts - google-noto-sans-fonts
- google-noto-serif-fonts - google-noto-serif-fonts
- liberation-fonts - liberation-fonts
- vim-X11 - vim-X11
- name: Check for Gnome Shell when: ansible_distribution_major_version == '8'
ansible.builtin.stat: - name: Install GUI packages (EL 9)
path: /usr/bin/gnome-shell
register: gnome_shell
- 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 become: true
ansible.builtin.dnf: ansible.builtin.dnf:
name: '{{ packages }}' name: '{{ packages }}'
state: present state: present
vars: vars:
packages: packages:
- git-gui
- gnome-extensions-app - gnome-extensions-app
- gnome-shell-extension-dash-to-dock - gnome-shell-extension-dash-to-dock
- gnome-tweaks - gnome-tweaks
when: gnome_shell.stat.exists and ansible_distribution_major_version == '9' - google-noto-sans-fonts
- google-noto-serif-fonts
- liberation-fonts
- vim-X11
when: ansible_distribution_major_version == '9'