forked from ansible-lockdown/RHEL9-CIS
updated marker
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
ebdb8b9129
commit
5e5174a5b0
3 changed files with 8 additions and 8 deletions
|
|
@ -57,7 +57,7 @@
|
||||||
- name: "1.3.3 | Ensure cryptographic mechanisms are used to protect the integrity of audit tools"
|
- name: "1.3.3 | Ensure cryptographic mechanisms are used to protect the integrity of audit tools"
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/aide.conf
|
path: /etc/aide.conf
|
||||||
marker: "# {mark} Audit tools (CIS - Ansible)"
|
marker: "# {mark} Audit tools - CIS benchmark - Ansible-lockdown"
|
||||||
block: |
|
block: |
|
||||||
/sbin/auditctl p+i+n+u+g+s+b+acl+xattrs+sha512
|
/sbin/auditctl p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||||
/sbin/auditd p+i+n+u+g+s+b+acl+xattrs+sha512
|
/sbin/auditd p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
- name: "4.2.1.5 | PATCH | Ensure logging is configured | mail.* log setting"
|
- name: "4.2.1.5 | PATCH | Ensure logging is configured | mail.* log setting"
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/rsyslog.conf
|
path: /etc/rsyslog.conf
|
||||||
marker: "# {mark} MAIL LOG SETTINGS (ANSIBLE MANAGED)"
|
marker: "# {mark} MAIL LOG SETTINGS - CIS benchmark - Ansible-lockdown"
|
||||||
block: |
|
block: |
|
||||||
# mail logging additions to meet CIS standards
|
# mail logging additions to meet CIS standards
|
||||||
mail.* -/var/log/mail
|
mail.* -/var/log/mail
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/rsyslog.conf
|
path: /etc/rsyslog.conf
|
||||||
state: present
|
state: present
|
||||||
marker: "# {mark} NEWS LOG SETTINGS (ANSIBLE MANAGED)"
|
marker: "# {mark} NEWS LOG SETTINGS - CIS benchmark - Ansible-lockdown"
|
||||||
block: |
|
block: |
|
||||||
# news logging additions to meet CIS standards
|
# news logging additions to meet CIS standards
|
||||||
news.crit -/var/log/news/news.crit
|
news.crit -/var/log/news/news.crit
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/rsyslog.conf
|
path: /etc/rsyslog.conf
|
||||||
state: present
|
state: present
|
||||||
marker: "# {mark} MISC. LOG SETTINGS (ANSIBLE MANAGED)"
|
marker: "# {mark} MISC. LOG SETTINGS - CIS benchmark - Ansible-lockdown"
|
||||||
block: |
|
block: |
|
||||||
# misc. logging additions to meet CIS standards
|
# misc. logging additions to meet CIS standards
|
||||||
*.=warning;*.=err -/var/log/warn
|
*.=warning;*.=err -/var/log/warn
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/rsyslog.conf
|
path: /etc/rsyslog.conf
|
||||||
state: present
|
state: present
|
||||||
marker: "#{mark} LOCAL LOG SETTINGS (ANSIBLE MANAGED)"
|
marker: "#{mark} LOCAL LOG SETTINGS - CIS benchmark - Ansible-lockdown"
|
||||||
block: |
|
block: |
|
||||||
# local log settings to meet CIS standards
|
# local log settings to meet CIS standards
|
||||||
local0,local1.* -/var/log/localmessages
|
local0,local1.* -/var/log/localmessages
|
||||||
|
|
@ -132,7 +132,7 @@
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/rsyslog.conf
|
path: /etc/rsyslog.conf
|
||||||
state: present
|
state: present
|
||||||
marker: "#{mark} Auth SETTINGS (ANSIBLE MANAGED)"
|
marker: "#{mark} Auth SETTINGS - CIS benchmark - Ansible-lockdown"
|
||||||
block: |
|
block: |
|
||||||
# Private settings to meet CIS standards
|
# Private settings to meet CIS standards
|
||||||
auth,authpriv.* /var/log/secure
|
auth,authpriv.* /var/log/secure
|
||||||
|
|
@ -143,7 +143,7 @@
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/rsyslog.conf
|
path: /etc/rsyslog.conf
|
||||||
state: present
|
state: present
|
||||||
marker: "#{mark} Cron SETTINGS (ANSIBLE MANAGED)"
|
marker: "#{mark} Cron SETTINGS - CIS benchmark - Ansible-lockdown"
|
||||||
block: |
|
block: |
|
||||||
# Cron settings to meet CIS standards
|
# Cron settings to meet CIS standards
|
||||||
cron.* /var/log/cron
|
cron.* /var/log/cron
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
state: "{{ item.state }}"
|
state: "{{ item.state }}"
|
||||||
marker: "# {mark} CIS 5.6.3 ANSIBLE MANAGED"
|
marker: "# {mark} - CIS benchmark - Ansible-lockdown"
|
||||||
create: true
|
create: true
|
||||||
mode: 0644
|
mode: 0644
|
||||||
block: |
|
block: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue