base: Fix mailx install for el9

This commit is contained in:
Timo Makinen 2022-10-27 17:21:48 +00:00
parent 71f6a2cee2
commit 1cf67e6b24

View file

@ -58,7 +58,6 @@
- cronie # missing from fedora - cronie # missing from fedora
- curl # curl - curl # curl
- iotop # monitor io usage - iotop # monitor io usage
- mailx # send mail from cmd
- nc # netcat - nc # netcat
- net-tools # ifconfig etc - net-tools # ifconfig etc
- psmisc # pstree for debugging - psmisc # pstree for debugging
@ -73,6 +72,22 @@
- vim-enhanced # working vi :) - vim-enhanced # working vi :)
- xterm # resize - xterm # resize
- name: install el7/el8 packages
ansible.builtin.package:
name: "{{ item }}"
state: installed
with_items:
- mailx
when: ansible_distribution_major_version|int <= 8
- name: install el9 packages
ansible.builtin.package:
name: "{{ item }}"
state: installed
with_items:
- s-nail
when: ansible_distribution_major_version|int >= 9
- name: disable grep colors - name: disable grep colors
ansible.builtin.file: ansible.builtin.file:
dest: /etc/GREP_COLORS dest: /etc/GREP_COLORS