Skip to content

ansible-os-hardening

Configuration Management

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

Jinja Latest 10.6.0 · 8d ago Security brief →

Features

  • Hardens Linux distributions (CentOS, AlmaLinux, Rocky Linux, Debian, Ubuntu, Amazon Linux, Arch Linux, Fedora, SUSE Tumbleweed)
  • Secures MySQL/MariaDB installations according to DevSec baselines
  • Applies Nginx configuration hardening for versions 1.0.16+
  • Configures OpenSSH with recommended security settings (OpenSSH 5.3+)

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,379
Forks
825
Language
Jinja

Install & Platforms

Platforms
linux

Beta — feedback welcome: [email protected]