second commit

This commit is contained in:
2026-08-19 22:33:19 +02:00
parent 411812e954
commit 199f306993
107 changed files with 5984 additions and 0 deletions

View File

@ -0,0 +1,33 @@
---
# CIS 2.x (Services) / STIG-aequivalent: unsichere Legacy-Dienste/-Clients
# entfernen, automatische Sicherheitsupdates aktivieren.
- name: Unnoetige/unsichere Pakete entfernen
ansible.builtin.apt:
name: "{{ item }}"
state: absent
purge: true
loop:
- telnet
- rsh-client
- talk
- nis # ypbind etc. -- veraltete, unverschluesselte Netzwerkdienste
- tftpd-hpa
- xinetd
ignore_errors: true
- name: Automatische Sicherheitsupdates installieren
ansible.builtin.apt:
name: unattended-upgrades
state: present
update_cache: true
- name: Unattended-upgrades aktivieren
ansible.builtin.copy:
dest: /etc/apt/apt.conf.d/20auto-upgrades
owner: root
group: root
mode: "0644"
content: |
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";