18 lines
432 B
YAML
18 lines
432 B
YAML
---
|
|
- name: restart rsyslog
|
|
ansible.builtin.service:
|
|
name: rsyslog
|
|
state: restarted
|
|
|
|
- name: restart auditd
|
|
ansible.builtin.service:
|
|
name: auditd
|
|
state: restarted
|
|
|
|
- name: reload systemd
|
|
ansible.builtin.command: systemctl daemon-reexec
|
|
|
|
- name: update initramfs
|
|
ansible.builtin.command: dracut -f
|
|
when: ansible_facts['os_family'] == 'RedHat' or ansible_facts['distribution'] in ['Rocky','RedHat','CentOS']
|