From 28ef25ff555b8db6355964bbdd70074e76400f36 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 16 Nov 2021 10:36:11 -0500 Subject: [PATCH] Fix tasks running on EL --- roles/el/tasks/packages-cli.yml | 16 ++++++++++++---- roles/el/tasks/packages-gui.yml | 4 ++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/roles/el/tasks/packages-cli.yml b/roles/el/tasks/packages-cli.yml index 64f44cc..d53a02c 100644 --- a/roles/el/tasks/packages-cli.yml +++ b/roles/el/tasks/packages-cli.yml @@ -32,9 +32,7 @@ state: present vars: packages: - - "@container-tools" - "@development" - - aspell-en - bc - bind-utils - clang @@ -44,9 +42,19 @@ - mc - nmap - openssh-server - - python38 - - python38-psutil - sqlite - sudo - tmux - vim-enhanced +- name: Install CLI packages (EL 8) + become: true + ansible.builtin.dnf: + name: '{{ packages }}' + state: present + vars: + packages: + - "@container-tools" + - aspell-en + - python38 + - python38-psutil + when: ansible_distribution_major_version == 8 diff --git a/roles/el/tasks/packages-gui.yml b/roles/el/tasks/packages-gui.yml index 2a9b55e..5b79d9a 100644 --- a/roles/el/tasks/packages-gui.yml +++ b/roles/el/tasks/packages-gui.yml @@ -23,6 +23,10 @@ - git-gui - liberation-fonts - vim-X11 +- name: Check for Gnome Shell + ansible.builtin.stat: + path: /usr/bin/gnome-shell + register: gnome_shell - name: Install Gnome packages (EL 8) become: true ansible.builtin.dnf: