Update for CentOS 8
This commit is contained in:
parent
5eb90966eb
commit
84e84f9d93
3 changed files with 63 additions and 26 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Include vars for {{ ansible_os_family }}
|
- name: Include vars for {{ ansible_os_family }}
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
include_vars: "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
|
||||||
|
|
||||||
- name: Install EPEL repo definition packages for {{ ansible_os_family }} on x86_64 and aarch64 plateform
|
- name: Install EPEL repo definition packages for {{ ansible_os_family }} on x86_64 and aarch64 plateform
|
||||||
package:
|
package:
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == "RedHat"
|
- ansible_os_family == "RedHat"
|
||||||
|
- ansible_distribution_major_version = '7'
|
||||||
- ansible_machine == "armv7l"
|
- ansible_machine == "armv7l"
|
||||||
# or ansible_machine == "armv6l"
|
# or ansible_machine == "armv6l"
|
||||||
|
|
||||||
|
|
@ -62,6 +63,7 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == "RedHat"
|
- ansible_os_family == "RedHat"
|
||||||
|
- ansible_distribution_major_version = '7'
|
||||||
|
|
||||||
- name: upgrade all packages
|
- name: upgrade all packages
|
||||||
package:
|
package:
|
||||||
|
|
@ -93,6 +95,7 @@
|
||||||
regexp: '^#compress'
|
regexp: '^#compress'
|
||||||
replace: 'compress'
|
replace: 'compress'
|
||||||
|
|
||||||
|
- block:
|
||||||
- name: Verify if hosts.deny TCP_Wrappers file exists
|
- name: Verify if hosts.deny TCP_Wrappers file exists
|
||||||
stat:
|
stat:
|
||||||
path: "/etc/hosts.deny"
|
path: "/etc/hosts.deny"
|
||||||
|
|
@ -120,4 +123,7 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when:
|
when:
|
||||||
- not hostsallow.stat.exists
|
- not hostsallow.stat.exists
|
||||||
|
when:
|
||||||
|
- ansible_os_family == "RedHat"
|
||||||
|
- ansible_distribution_major_version < '8'
|
||||||
|
|
||||||
|
|
|
||||||
31
vars/RedHat_8.yml
Normal file
31
vars/RedHat_8.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
base_packages:
|
||||||
|
- "@core"
|
||||||
|
- NetworkManager-team
|
||||||
|
- NetworkManager-bluetooth
|
||||||
|
- NetworkManager-wifi
|
||||||
|
- NetworkManager-wwan
|
||||||
|
# - aide
|
||||||
|
- bash-completion
|
||||||
|
- chrony
|
||||||
|
- device-mapper-event
|
||||||
|
- dmidecode
|
||||||
|
- firewalld
|
||||||
|
- kexec-tools
|
||||||
|
# - libcap-ng-utils
|
||||||
|
# - pigz # epel
|
||||||
|
- patch
|
||||||
|
- pciutils
|
||||||
|
- python3-libselinux
|
||||||
|
- rng-tools
|
||||||
|
- rsync
|
||||||
|
- screen
|
||||||
|
- usbutils
|
||||||
|
- wget
|
||||||
|
- xz
|
||||||
|
# - yum-cron
|
||||||
|
|
||||||
|
base_packages_servers:
|
||||||
|
- "@^minimal-environment"
|
||||||
|
- NetworkManager-config-server
|
||||||
|
- NetworkManager-dispatcher-routing-rules
|
||||||
Loading…
Add table
Add a link
Reference in a new issue