back to home

dev-sec / ansible-collection-hardening

This Ansible collection provides battle tested hardening for Linux, SSH, nginx, MySQL

5,274 stars
822 forks
75 issues
Jinja

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing dev-sec/ansible-collection-hardening in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/dev-sec/ansible-collection-hardening)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Ansible Collection - devsec.hardening Description This collection provides battle tested hardening for: • Linux operating systems: • CentOS Stream 9 • AlmaLinux 8/9/10 • Rocky Linux 8/9/10 • Debian 11/12/13 • Ubuntu 20.04/22.04/24.04 • Amazon Linux (some roles supported) • Arch Linux (some roles supported) • Fedora 39/40 (some roles supported) • Suse Tumbleweed (some roles supported) • MySQL • MariaDB >= 5.5.65, >= 10.1.45, >= 10.3.17 • MySQL >= 5.7.31, >= 8.0.3 • Nginx 1.0.16 or later • OpenSSH 5.3 and later The hardening is intended to be compliant with the Inspec DevSec Baselines: • • • • Looking for the old roles? The roles are now part of the hardening-collection. We have kept the old releases of the role in this repository, so you can find the them by exploring older tags. The last release of the standalone role was 6.2.0. The other roles are in separate archives repositories: • apache_hardening • mysql_hardening • nginx_hardening • ssh_hardening • windows_hardening Minimum required Ansible-version • Ansible >= 2.16 Included content • os_hardening • mysql_hardening • nginx_hardening • ssh_hardening In progress, not working: • apache_hardening • windows_hardening Installation Install the collection via ansible-galaxy: Using this collection Please refer to the examples in the readmes of the role. See Ansible Using collections for more details. Contributing to this collection See the contributor guideline. Release notes See the changelog. Roadmap Todos: • Work on apache_hardening and windows_hardening • Add support for more operating systems More information General information: • Ansible Collection overview • Ansible User guide • Ansible Developer guide • Ansible Collections Checklist • Ansible Community code of conduct • The Bullhorn (the Ansible Contributor newsletter) • Changes impacting Contributors Licensing Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.