Skip to content

ansible-os-hardening

Configuration Management

An Ansible collection providing battle‑tested security hardening playbooks for Linux OSes, MySQL, Nginx, OpenSSH (and others).

Jinja Latest 10.6.0 · 2mo ago Security brief →

Features

  • Hardens major Linux distributions (CentOS, AlmaLinux, Rocky Linux, Debian, Ubuntu, Amazon Linux, Arch, Fedora, Suse Tumbleweed)
  • Secures MySQL/MariaDB instances according to DevSec baselines
  • Applies Nginx configuration hardening for versions 1.0.16+
  • Enforces OpenSSH security settings for SSH 5.3 and later

Recent releases

View all 4 releases →
Review required
10.6.0 Mixed
Auth RBAC

APT cache, ptrace restriction, OS support

10.5.2 Bug fix

Fixed bug where apt cache was unnecessarily updated when installing libpam-passwdqc.

Full changelog

Changelog

10.5.2 (2026-03-28)

Full Changelog

Fixed bugs:

Merged pull requests:

10.5.1 Bug fix

Fixed flaky SSH failures on Ubuntu 24.04 and newer by disabling sshd socket activation.

Full changelog

Changelog

10.5.1 (2026-03-20)

Full Changelog

Fixed bugs:

Closed issues:

  • SSH issue after running devsec.hardening.ssh_hardening role #854

Merged pull requests:

10.5.0 Breaking risk
⚠ Upgrade required
  • Disable systemd audit logging by default – can be re‑enabled via configuration if needed
  • Consistently access Ansible facts using the ansible_facts.* namespace
Notable features
  • Replaced deprecated community.general.yaml callback plugin with an alternative
Full changelog

Changelog

10.5.0 (2026-01-22)

Full Changelog

Implemented enhancements:

Fixed bugs:

  • /etc/sysctl.conf is no longer honored in Debian 13 #905

Merged pull requests:

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

About

Stars
5,413
Forks
829
Language
Jinja

Install & Platforms

Platforms
linux

Beta — feedback welcome: [email protected]