Fix tasks running on EL

This commit is contained in:
Anthony Rose 2021-11-16 10:36:11 -05:00
parent d7ef97c787
commit 28ef25ff55
2 changed files with 16 additions and 4 deletions

View file

@ -32,9 +32,7 @@
state: present state: present
vars: vars:
packages: packages:
- "@container-tools"
- "@development" - "@development"
- aspell-en
- bc - bc
- bind-utils - bind-utils
- clang - clang
@ -44,9 +42,19 @@
- mc - mc
- nmap - nmap
- openssh-server - openssh-server
- python38
- python38-psutil
- sqlite - sqlite
- sudo - sudo
- tmux - tmux
- vim-enhanced - 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

View file

@ -23,6 +23,10 @@
- git-gui - git-gui
- liberation-fonts - liberation-fonts
- vim-X11 - vim-X11
- name: Check for Gnome Shell
ansible.builtin.stat:
path: /usr/bin/gnome-shell
register: gnome_shell
- name: Install Gnome packages (EL 8) - name: Install Gnome packages (EL 8)
become: true become: true
ansible.builtin.dnf: ansible.builtin.dnf: