added tasks for a bastion host

This commit is contained in:
2025-10-01 14:22:25 +02:00
parent 54fc2ad535
commit 19e616845e
13 changed files with 299 additions and 11 deletions

View File

@@ -0,0 +1,24 @@
---
- name: system setup | user hardening | remove unnecessary system accounts
tags: users,hardening,system
user:
name: "{{ item }}"
state: absent
remove: true # Also removes home directory and mail spool
loop:
# Legacy or unused service accounts
- lp
- sync
- shutdown
- halt
- mail
- news
- uucp
- proxy
- backup
- list
- irc
- gnats
- games
notify: update aide database
ignore_errors: true # Some users might not exist, which is fine