ansible_etalon/tasks/redhat.yml

84 lines
1.5 KiB
YAML

---
##############################################################################
# redhat
- name: dnf update
tags: dnf
dnf:
state: latest
update_only: yes
- name: install packages
tags: dnf
dnf:
name:
- bind-utils
- bzip2
- git
- s-nail
- iotop
- lsof
- make
- mc
- mtr
- patch
- postfix
- rsync
- strace
- sysstat
- tcpdump
- telnet
- zip
- unzip
- vim-enhanced
- perl-File-Slurp
- perl-JSON
- perl-English
- net-tools
- mlocate
- glibc-langpack-hu
- setools-console
- setroubleshoot-server
state: present
- name: subscription-manager repo change for epel install
tags: dnf
shell: "subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms"
- name: install epel-release
tags: dnf
dnf:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
disable_gpg_check: yes
- name: install packages, 2nd round
tags: dnf
dnf:
name:
- ntpsec
- ngrep
- pwgen
- screen
- mosh
- w3m
- prename
- python3-redis
- name: enable ntpd service
systemd_service:
name: ntpd
enabled: true
- name: remove motd.d/insights-client
file:
path: /etc/motd.d/insights-client
state: absent
- name: disable firewalld service
systemd_service:
name: firewalld
state: stopped
enabled: false
# vim: set tabstop=2 shiftwidth=2 expandtab smarttab: