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 }}
|
||||
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
|
||||
package:
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
mode: 0644
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution_major_version = '7'
|
||||
- ansible_machine == "armv7l"
|
||||
# or ansible_machine == "armv6l"
|
||||
|
||||
|
|
@ -62,6 +63,7 @@
|
|||
mode: 0644
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution_major_version = '7'
|
||||
|
||||
- name: upgrade all packages
|
||||
package:
|
||||
|
|
@ -93,31 +95,35 @@
|
|||
regexp: '^#compress'
|
||||
replace: 'compress'
|
||||
|
||||
- name: Verify if hosts.deny TCP_Wrappers file exists
|
||||
stat:
|
||||
path: "/etc/hosts.deny"
|
||||
register: hostsdeny
|
||||
- name: Verify if hosts.allow TCP_Wrappers file exists
|
||||
stat:
|
||||
path: "/etc/hosts.allow"
|
||||
register: hostsallow
|
||||
- block:
|
||||
- name: Verify if hosts.deny TCP_Wrappers file exists
|
||||
stat:
|
||||
path: "/etc/hosts.deny"
|
||||
register: hostsdeny
|
||||
- name: Verify if hosts.allow TCP_Wrappers file exists
|
||||
stat:
|
||||
path: "/etc/hosts.allow"
|
||||
register: hostsallow
|
||||
|
||||
- name: Install hosts.deny TCP_Wrappers file
|
||||
copy:
|
||||
src: "hosts.deny"
|
||||
dest: "/etc/hosts.deny"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
- name: Install hosts.deny TCP_Wrappers file
|
||||
copy:
|
||||
src: "hosts.deny"
|
||||
dest: "/etc/hosts.deny"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when:
|
||||
- not hostsdeny.stat.exists
|
||||
- name: Install hosts.allow TCP_Wrappers file
|
||||
copy:
|
||||
src: "hosts.allow"
|
||||
dest: "/etc/hosts.allow"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when:
|
||||
- not hostsallow.stat.exists
|
||||
when:
|
||||
- not hostsdeny.stat.exists
|
||||
- name: Install hosts.allow TCP_Wrappers file
|
||||
copy:
|
||||
src: "hosts.allow"
|
||||
dest: "/etc/hosts.allow"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when:
|
||||
- not hostsallow.stat.exists
|
||||
- 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