Compare commits

...

11 Commits

Author SHA1 Message Date
Tjeerd 87500db7aa
Merge e5d2bc840a into ffba24432a 2025-05-13 10:20:34 -05:00
uk-bolly ffba24432a
Merge pull request #41 from ansible-lockdown/May_25_updates
May 25 updates
2025-05-13 13:35:37 +01:00
Mark Bolwell f8e14db0c3
Added precommit badge
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2025-05-12 17:08:41 +01:00
Mark Bolwell 1ec17228ff
Updated logic thanks to @UZziell #40
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2025-05-12 17:08:31 +01:00
Mark Bolwell fac8eb7e02
fix typo thanks to @UZziell #40
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2025-05-12 17:08:16 +01:00
Mark Bolwell a8f039cba0
added fix for PR #39 thansk to @Tjird
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2025-05-12 14:30:38 +01:00
Mark Bolwell 388331fe98
Added fix for #22 thanks to @WhiteRoseLK
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2025-05-12 14:29:12 +01:00
Mark Bolwell af372a7c73
added fix for #21 thanks to @PhilEV
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2025-05-12 14:25:59 +01:00
Mark Bolwell 0347692661
added fix for #33 thanks to @WhiteRoseLK
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2025-05-12 14:23:56 +01:00
Mark Bolwell d5bad97cad
Added fix for #37 thanks to @pdag
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2025-05-12 14:03:06 +01:00
Tjeerd e5d2bc840a
Fix typo 2.2.21 > 2.1.21 warn_control_id 2025-05-01 11:22:00 +02:00
8 changed files with 12 additions and 8 deletions

View File

@ -24,6 +24,7 @@
![Issues Open](https://img.shields.io/github/issues-raw/ansible-lockdown/UBUNTU24-CIS?label=Open%20Issues)
![Issues Closed](https://img.shields.io/github/issues-closed-raw/ansible-lockdown/UBUNTU24-CIS?label=Closed%20Issues&&color=success)
![Pull Requests](https://img.shields.io/github/issues-pr/ansible-lockdown/UBUNTU24-CIS?label=Pull%20Requests)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
![License](https://img.shields.io/github/license/ansible-lockdown/UBUNTU24-CIS?label=License)

View File

@ -21,6 +21,7 @@
listen: "Remount /tmp"
- name: "Remounting /tmp systemd"
when: ubtu24cis_tmp_svc
vars:
mount_point: '/tmp'
ansible.builtin.systemd:

View File

@ -38,7 +38,9 @@
sudo_password_rule: ubtu24cis_rule_5_2_4 # pragma: allowlist secret
- name: Ensure root password is set
when: ubtu24cis_rule_5_4_2_4
when:
- ubtu24cis_section5
- ubtu24cis_rule_5_4_2_4
tags: always
block:
- name: Ensure root password is set

View File

@ -22,12 +22,12 @@
register: discovered_var_mount
- name: "1.1.2.4.1 | AUDIT | Ensure /var is a separate partition | Absent"
when: discovered_dev_shm_mount is undefined
when: discovered_var_mount is undefined
ansible.builtin.debug:
msg: "Warning!! {{ required_mount }} is not mounted on a separate partition"
- name: "1.1.2.4.1 | AUDIT | Ensure /var is a separate partition | Present"
when: discovered_dev_shm_mount is undefined
when: discovered_var_mount is undefined
ansible.builtin.import_tasks:
file: warning_facts.yml

View File

@ -10,7 +10,7 @@
- NIST800-53R5_SI-2
- patch
block:
- name: "1.2.2.1 | PATCH | Ensure updates, patches, and additional security software are installedi | Update"
- name: "1.2.2.1 | PATCH | Ensure updates, patches, and additional security software are installed | Update"
ansible.builtin.package:
name: "*"
state: latest

View File

@ -672,7 +672,7 @@
- rule_2.1.21
- NIST800-53R5_CM-7
vars:
warn_control_id: '2.2.21'
warn_control_id: '2.1.21'
block:
- name: "2.1.21 | PATCH | Ensure mail transfer agents are configured for local-only mode | Make changes if exim4 installed"
when: "'exim4' in ansible_facts.packages"

View File

@ -15,9 +15,9 @@
ansible.builtin.template:
src: "{{ item }}.j2"
dest: "/{{ item }}"
mode: 'go-r'
mode: 'g=r,o-rwx'
owner: root
group: root
group: "{% if ubtu24cis_rule_2_3_3_2 %}_chrony{% else %}root{% endif %}"
loop:
- etc/chrony/sources.d/pool.sources
- etc/chrony/sources.d/server.sources

View File

@ -154,5 +154,5 @@
ansible.builtin.file:
path: /etc/cron.allow
owner: root
group: root
group: '{{ (discovered_cron_allow_status.stat.gr_name == "crontab") | ternary(omit,"root") }}'
mode: 'u-x,g-wx,o-rwx'