mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
issue #305 addressed
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
ec30606e5c
commit
683177e46f
1 changed files with 8 additions and 2 deletions
|
|
@ -96,15 +96,21 @@
|
|||
- rule_6.2.1.4
|
||||
block:
|
||||
- name: "6.2.1.4 | PATCH | Ensure only one logging system is in use | when rsyslog"
|
||||
when: rhel9cis_syslog == "rsyslog"
|
||||
when:
|
||||
- rhel9cis_syslog == "rsyslog"
|
||||
- "'systemd-journald' in ansible_facts.packages"
|
||||
ansible.builtin.systemd:
|
||||
name: systemd-journald
|
||||
state: stopped
|
||||
enabled: false
|
||||
|
||||
- name: "6.2.1.4 | PATCH | Ensure only one logging system is in use | when journald"
|
||||
when: rhel9cis_syslog == "journald"
|
||||
when:
|
||||
- rhel9cis_syslog == "journald"
|
||||
- "'rsyslog' in ansible_facts.packages"
|
||||
ansible.builtin.systemd:
|
||||
name: rsyslog
|
||||
state: stopped
|
||||
enabled: false
|
||||
register: discovered_rsyslog_service
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue