This commit is contained in:
parent
daf6a3948e
commit
8402c78e99
1 changed files with 10 additions and 8 deletions
|
|
@ -16,7 +16,7 @@
|
|||
- name: Install EPEL repo definition packages for {{ ansible_os_family }} on x86_64 and aarch64 plateform
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
state: present
|
||||
with_items:
|
||||
- epel-release
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
- name: Install EPEL repo definition packages for OracleLinux on x86_64 and aarch64 plateform
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
state: present
|
||||
with_items:
|
||||
- oracle-epel-release-el8
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
- name: Install base packages for {{ ansible_os_family }}
|
||||
package:
|
||||
name: "{{ base_packages }}"
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
state: present
|
||||
|
||||
- name: echo 'LANG="{{ locale }}"' > /etc/locale.conf
|
||||
|
|
@ -106,7 +106,7 @@
|
|||
systemd:
|
||||
name: dnf-automatic.timer
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: true
|
||||
when:
|
||||
- base_autoupdate | bool
|
||||
- ansible_os_family == "RedHat"
|
||||
|
|
@ -120,7 +120,7 @@
|
|||
- kpatch-dnf
|
||||
- kpatch-patch
|
||||
- "kpatch-patch = {{ ansible_kernel }}"
|
||||
update_cache: yes
|
||||
update_cache: true
|
||||
state: present
|
||||
when:
|
||||
- base_autoupdate | bool
|
||||
|
|
@ -143,7 +143,7 @@
|
|||
systemd:
|
||||
name: kpatch.service
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: true
|
||||
when:
|
||||
- base_autoupdate | bool
|
||||
- ansible_distribution == "RedHat"
|
||||
|
|
@ -152,7 +152,7 @@
|
|||
# - name: upgrade all packages
|
||||
# package:
|
||||
# name: "*"
|
||||
# update_cache: yes
|
||||
# update_cache: true
|
||||
# state: latest
|
||||
|
||||
- name: Install install_pxe.sh script
|
||||
|
|
@ -167,7 +167,7 @@
|
|||
service:
|
||||
name: rngd
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: true
|
||||
- name: Ensure rngd service is started
|
||||
service:
|
||||
name: rngd
|
||||
|
|
@ -184,10 +184,12 @@
|
|||
stat:
|
||||
path: "/etc/hosts.deny"
|
||||
register: hostsdeny
|
||||
check_mode: false
|
||||
- name: Verify if hosts.allow TCP_Wrappers file exists
|
||||
stat:
|
||||
path: "/etc/hosts.allow"
|
||||
register: hostsallow
|
||||
check_mode: false
|
||||
|
||||
- name: Install hosts.deny TCP_Wrappers file
|
||||
copy:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue